<!DOCTYPE html>





    

    

    

    

<html lang="en-us">
<!-- Mirrored from docs.memfiredb.com/docs/app/development_guide/realtime/guides/postgres-changes/ by HTTrack Website Copier/3.x [XR&CO'2014], Fri, 27 Jun 2025 07:54:59 GMT -->
<head>
    <meta charset="utf-8" />
    <title>Postgres 更改 | MemFire Cloud在线文档</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="使用 Supabase Realtime 监听 Postgres 更改。">
    <meta name="keywords" content="Documentation, Hugo, Hugo Theme, Bootstrap" />
    <meta name="author" content="Colin Wilson - Lotus Labs" />
    <meta name="email" content="support@aigis.uk" />
    <meta name="website" content="https://lotusdocs.dev/" />
    <meta name="Version" content="v0.1.0" />
    
    <link rel="icon" href="https://docs.memfiredb.com/favicon.ico" sizes="any">
<link rel="icon" type="image/svg+xml" href="https://docs.memfiredb.com/favicon.svg">
<link rel="apple-touch-icon" sizes="180x180" href="../../../../../../apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="../../../../../../favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="../../../../../../favicon-16x16.png">
<link rel="manifest" crossorigin="use-credentials" href="https://docs.memfiredb.com/site.webmanifest">
<meta property="og:title" content="Postgres 更改" />
<meta property="og:description" content="使用 Supabase Realtime 监听 Postgres 更改。" />
<meta property="og:type" content="article" />
<meta property="og:url" content="index.html" /><meta property="og:image" content="../../../../../../opengraph/card-base-2_hu06b1a92291a380a0d2e0ec03dab66b2f_17642_filter_17347036099454448404.png"/><meta property="article:section" content="docs" />

<meta name="twitter:card" content="summary_large_image"/>
<meta name="twitter:image" content="../../../../../../opengraph/card-base-2_hu06b1a92291a380a0d2e0ec03dab66b2f_17642_filter_17347036099454448404.png"/>
<meta name="twitter:title" content="Postgres 更改"/>
<meta name="twitter:description" content="使用 Supabase Realtime 监听 Postgres 更改。"/>

    
    <script>(()=>{var t=window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches,e=localStorage.getItem("theme");t&&e===null&&(localStorage.setItem("theme","dark"),document.documentElement.setAttribute("data-dark-mode","")),t&&e==="dark"&&document.documentElement.setAttribute("data-dark-mode",""),e==="dark"&&document.documentElement.setAttribute("data-dark-mode","")})()</script>
    
    
    
    
    
        
        
        
        
    
        
        
        
        
    
    
    <link rel="preconnect" href="https://fonts.gstatic.com/" />
    <link rel="preconnect" href="https://fonts.gstatic.com/" crossorigin />
    <link href="https://fonts.googleapis.com/css?family=Inter:300,400,600,700|Fira+Code:500,700&amp;display=block" rel="stylesheet">

    <link rel="stylesheet" href="../../../../../scss/style.min.3c376716d7676031e43f6cdc5f3b857642dfe5127f5fd4540ab03d9d4fe8ebac97eff815fbd2f0910dd1307fddf53a15.css"  crossorigin="anonymous">
    
    
    
    </head><body>
        <div class="content">
            <div class="page-wrapper toggled">
<nav id="sidebar" class="sidebar-wrapper">
    <div class="sidebar-brand">
        <a href='../../../../../overview/index.html' aria-label="HomePage" alt="HomePage">
            
               <svg width="232" height="20" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 232 20">
  <g fill="none" fill-rule="evenodd">
    <text 
      x="50%" 
      y="50%" 
      font-family="Arial, sans-serif" 
      font-size="18" 
      font-weight="bold" 
      fill="#000" 
      text-anchor="middle" 
      dominant-baseline="middle">
      VFORM
    </text>
  </g>
</svg>
            
        </a>
    </div>
    <div class="sidebar-content" style="height: calc(100% - 131px);">
        <ul class="sidebar-menu">
            
                
                
                    
                        
                        <li class="">
                            <a class="sidebar-root-link" href="../../../../../overview/index.html">
                                <i class="material-icons me-2">dataset</i>
                                
                                文档中心
                            </a>
                        </li>
                    
                
                    
                    
                        <li class="sidebar-dropdown  ">
                            <button class="btn">
                                <i class="material-icons me-2">article</i>
                                产品动向
                            </button>
                            <div class="sidebar-submenu ">
                                <ul>
                                    
                                        
                                        
                                            <li class="sidebar-dropdown nested  ">
                                                <button class="btn">
                                                    
                                                    公告
                                                </button>
                                                <div class="sidebar-submenu ">
                                                    <ul>
                                                        
                                                            
                                                            
                                                                <li class=" "><a class="sidebar-nested-link" href="../../../../../announcement/bulletin/bulletins/index.html">【2024年01月03日】MemFire Cloud应用开发正式推出计费套餐</a></li>
                                                            
                                                        
                                                    </ul>
                                                </div>
                                            </li>
                                        
                                    
                                        
                                        
                                            <li class=" "><a class="sidebar-nested-link" href="../../../../../announcement/history/index.html">产品动态</a></li>
                                        
                                    
                                </ul>
                            </div>
                        </li>
                    
                
                    
                    
                        <li class="sidebar-dropdown  current active">
                            <button class="btn">
                                <i class="material-icons me-2">deployed_code</i>
                                应用开发
                            </button>
                            <div class="sidebar-submenu d-block">
                                <ul>
                                    
                                        
                                        
                                            <li class="sidebar-dropdown nested  ">
                                                <button class="btn">
                                                    
                                                    概述
                                                </button>
                                                <div class="sidebar-submenu ">
                                                    <ul>
                                                        
                                                            
                                                            
                                                                <li class=" "><a class="sidebar-nested-link" href="../../../../overview/overview/index.html">介绍</a></li>
                                                            
                                                        
                                                            
                                                            
                                                                <li class=" "><a class="sidebar-nested-link" href="../../../../overview/features/index.html">功能</a></li>
                                                            
                                                        
                                                            
                                                            
                                                                <li class=" "><a class="sidebar-nested-link" href="../../../../overview/architecture/index.html">架构</a></li>
                                                            
                                                        
                                                    </ul>
                                                </div>
                                            </li>
                                        
                                    
                                        
                                        
                                            <li class="sidebar-dropdown nested  ">
                                                <button class="btn">
                                                    
                                                    购买指南
                                                </button>
                                                <div class="sidebar-submenu ">
                                                    <ul>
                                                        
                                                            
                                                            
                                                                <li class=" "><a class="sidebar-nested-link" href="../../../../purchase/price/index.html">价格文档</a></li>
                                                            
                                                        
                                                            
                                                            
                                                                <li class=" "><a class="sidebar-nested-link" href="../../../../purchase/package/index.html">包年包月套餐说明</a></li>
                                                            
                                                        
                                                            
                                                            
                                                                <li class=" "><a class="sidebar-nested-link" href="../../../../purchase/arrears/index.html">欠费说明</a></li>
                                                            
                                                        
                                                            
                                                            
                                                                <li class=" "><a class="sidebar-nested-link" href="../../../../purchase/unsubscribe/index.html">退订说明</a></li>
                                                            
                                                        
                                                            
                                                            
                                                                <li class=" "><a class="sidebar-nested-link" href="../../../../purchase/qa/index.html">计费相关问题</a></li>
                                                            
                                                        
                                                    </ul>
                                                </div>
                                            </li>
                                        
                                    
                                        
                                        
                                            <li class="sidebar-dropdown nested  ">
                                                <button class="btn">
                                                    
                                                    快速入门
                                                </button>
                                                <div class="sidebar-submenu ">
                                                    <ul>
                                                        
                                                            
                                                            
                                                                <li class=" "><a class="sidebar-nested-link" href="../../../../quickstart/with-vue-3/index.html">快速入门: Vue</a></li>
                                                            
                                                        
                                                            
                                                            
                                                                <li class=" "><a class="sidebar-nested-link" href="../../../../quickstart/with-react/index.html">快速入门: React</a></li>
                                                            
                                                        
                                                            
                                                            
                                                                <li class=" "><a class="sidebar-nested-link" href="../../../../quickstart/with-flutter/index.html">快速入门: Flutter</a></li>
                                                            
                                                        
                                                            
                                                            
                                                                <li class=" "><a class="sidebar-nested-link" href="../../../../quickstart/with-nextjs/index.html">快速入门: Next.js</a></li>
                                                            
                                                        
                                                            
                                                            
                                                                <li class=" "><a class="sidebar-nested-link" href="../../../../quickstart/with-angular/index.html">快速入门: Angular</a></li>
                                                            
                                                        
                                                            
                                                            
                                                                <li class=" "><a class="sidebar-nested-link" href="../../../../quickstart/with-kotlin/index.html">快速入门: Android Kotlin</a></li>
                                                            
                                                        
                                                            
                                                            
                                                                <li class=" "><a class="sidebar-nested-link" href="../../../../quickstart/with-nuxt-3/index.html">快速入门: Nuxt 3</a></li>
                                                            
                                                        
                                                            
                                                            
                                                                <li class=" "><a class="sidebar-nested-link" href="../../../../quickstart/with-svelte/index.html">快速入门: Svelte</a></li>
                                                            
                                                        
                                                            
                                                            
                                                                <li class=" "><a class="sidebar-nested-link" href="../../../../quickstart/with-ionic-vue/index.html">快速入门: Ionic Vue</a></li>
                                                            
                                                        
                                                            
                                                            
                                                                <li class=" "><a class="sidebar-nested-link" href="../../../../quickstart/with-expo/index.html">快速入门: Expo</a></li>
                                                            
                                                        
                                                            
                                                            
                                                                <li class=" "><a class="sidebar-nested-link" href="../../../../quickstart/with-ionic-angular/index.html">快速入门: Ionic Angular</a></li>
                                                            
                                                        
                                                            
                                                            
                                                                <li class=" "><a class="sidebar-nested-link" href="../../../../quickstart/with-ionic-react/index.html">快速入门: Ionic React</a></li>
                                                            
                                                        
                                                            
                                                            
                                                                <li class=" "><a class="sidebar-nested-link" href="../../../../quickstart/with-redwoodjs/index.html">快速入门: RedwoodJS</a></li>
                                                            
                                                        
                                                            
                                                            
                                                                <li class=" "><a class="sidebar-nested-link" href="../../../../quickstart/with-solidjs/index.html">快速入门: SolidJS</a></li>
                                                            
                                                        
                                                            
                                                            
                                                                <li class=" "><a class="sidebar-nested-link" href="../../../../quickstart/with-sveltekit/index.html">快速入门: SvelteKit</a></li>
                                                            
                                                        
                                                    </ul>
                                                </div>
                                            </li>
                                        
                                    
                                        
                                        
                                            <li class="sidebar-dropdown nested  current active">
                                                <button class="btn">
                                                    
                                                    开发指南
                                                </button>
                                                <div class="sidebar-submenu d-block">
                                                    <ul>
                                                        
                                                            
                                                            
                                                                <li class="sidebar-dropdown nested  ">
                                                                    <button class="btn">
                                                                        
                                                                        认证
                                                                    </button>
                                                                    <div class="sidebar-submenu ">
                                                                        <ul>
                                                                            
                                                                                
                                                                                
                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../auth/auth/index.html">概述</a></li>
                                                                                
                                                                            
                                                                                
                                                                                
                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../auth/redirect-urls/index.html">重定向 URL</a></li>
                                                                                
                                                                            
                                                                                
                                                                                
                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../auth/native-mobile-deep-linking/index.html">原生移动深度链接</a></li>
                                                                                
                                                                            
                                                                                
                                                                                
                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../auth/auth-captcha/index.html">启用Captcha保护</a></li>
                                                                                
                                                                            
                                                                                
                                                                                
                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../auth/rate-limiting/index.html">速率限制</a></li>
                                                                                
                                                                            
                                                                                
                                                                                
                                                                                    <li class="sidebar-dropdown nested  ">
                                                                                        <button class="btn">
                                                                                            
                                                                                            快速开始
                                                                                        </button>
                                                                                        <div class="sidebar-submenu ">
                                                                                            <ul>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../auth/auth-getting-start/nextjs/index.html">Next.js 设置微信扫码登录身份验证</a></li>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../auth/auth-getting-start/vue/index.html">vue 设置微信扫码登录身份验证</a></li>
                                                                                                
                                                                                            </ul>
                                                                                        </div>
                                                                                    </li>
                                                                                
                                                                            
                                                                                
                                                                                
                                                                                    <li class="sidebar-dropdown nested  ">
                                                                                        <button class="btn">
                                                                                            
                                                                                            身份验证
                                                                                        </button>
                                                                                        <div class="sidebar-submenu ">
                                                                                            <ul>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../auth/authentication/auth-email/index.html">使用电子邮件登录</a></li>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../auth/authentication/phoneauth/index.html">手机登录认证</a></li>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../auth/authentication/wechatauth/index.html">微信小程序登录认证</a></li>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../auth/authentication/wechatappauth/index.html">微信移动应用授权登录</a></li>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../auth/authentication/wechatqrauth/index.html">微信网站应用扫码登录</a></li>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../auth/authentication/auth-magic-link/index.html">使用Magic Link登录</a></li>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../auth/authentication/auth-apple/index.html">使用Apple登录</a></li>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../auth/authentication/auth-github/index.html">使用GitHub登录</a></li>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../auth/authentication/auth-gitlab/index.html">使用GitLab登录</a></li>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../auth/authentication/auth-email-templates/index.html">电子邮件模板</a></li>
                                                                                                
                                                                                            </ul>
                                                                                        </div>
                                                                                    </li>
                                                                                
                                                                            
                                                                                
                                                                                
                                                                                    <li class="sidebar-dropdown nested  ">
                                                                                        <button class="btn">
                                                                                            
                                                                                            授权
                                                                                        </button>
                                                                                        <div class="sidebar-submenu ">
                                                                                            <ul>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../auth/mandates/row-level-security/index.html">行级别安全性</a></li>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../auth/mandates/row-level-security2/index.html">RLS使用教程</a></li>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../auth/mandates/managing-user-data/index.html">管理用户数据</a></li>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../auth/mandates/server-side-rendering/index.html">服务器端渲染</a></li>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../auth/mandates/auth-mfa/index.html">多因素身份验证</a></li>
                                                                                                
                                                                                            </ul>
                                                                                        </div>
                                                                                    </li>
                                                                                
                                                                            
                                                                                
                                                                                
                                                                                    <li class="sidebar-dropdown nested  ">
                                                                                        <button class="btn">
                                                                                            
                                                                                            认证帮助程序
                                                                                        </button>
                                                                                        <div class="sidebar-submenu ">
                                                                                            <ul>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../auth/auth-helpers/auth-helpers/index.html">身份验证帮助程序</a></li>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../auth/auth-helpers/auth-ui/index.html">身份验证UI</a></li>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../auth/auth-helpers/nextjs/index.html">使用Next.js进行Supabase认证</a></li>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../auth/auth-helpers/sveltekit/index.html">使用SveltKit进行Supabase认证</a></li>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../auth/auth-helpers/remix/index.html">Supabase Remix认证</a></li>
                                                                                                
                                                                                            </ul>
                                                                                        </div>
                                                                                    </li>
                                                                                
                                                                            
                                                                                
                                                                                
                                                                                    <li class="sidebar-dropdown nested  ">
                                                                                        <button class="btn">
                                                                                            
                                                                                            深层探索
                                                                                        </button>
                                                                                        <div class="sidebar-submenu ">
                                                                                            <ul>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../auth/auth-deep-dive/auth-deep-dive-jwts/index.html">第一部分:JWTS</a></li>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../auth/auth-deep-dive/auth-row-level-security/index.html">第二部分:行级安全</a></li>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../auth/auth-deep-dive/auth-policies/index.html">第三部分:策略</a></li>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../auth/auth-deep-dive/auth-gotrue/index.html">第四部分: GoTrue</a></li>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../auth/auth-deep-dive/auth-google-oauth/index.html">第五部分: Google Oauth</a></li>
                                                                                                
                                                                                            </ul>
                                                                                        </div>
                                                                                    </li>
                                                                                
                                                                            
                                                                        </ul>
                                                                    </div>
                                                                </li>
                                                            
                                                        
                                                            
                                                            
                                                                <li class="sidebar-dropdown nested  ">
                                                                    <button class="btn">
                                                                        
                                                                        数据库
                                                                    </button>
                                                                    <div class="sidebar-submenu ">
                                                                        <ul>
                                                                            
                                                                                
                                                                                
                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../database/database/index.html">概述</a></li>
                                                                                
                                                                            
                                                                                
                                                                                
                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../database/connecting-to-postgres/index.html">数据库连接</a></li>
                                                                                
                                                                            
                                                                                
                                                                                
                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../database/associated-query/index.html">关联查询</a></li>
                                                                                
                                                                            
                                                                                
                                                                                
                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../database/functions/index.html">数据库函数</a></li>
                                                                                
                                                                            
                                                                                
                                                                                
                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../database/tables/index.html">表格和数据</a></li>
                                                                                
                                                                            
                                                                                
                                                                                
                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../database/webhooks/index.html">数据库 Webhooks</a></li>
                                                                                
                                                                            
                                                                                
                                                                                
                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../database/compute-add-ons/index.html">计算附加组件</a></li>
                                                                                
                                                                            
                                                                                
                                                                                
                                                                                    <li class="sidebar-dropdown nested  ">
                                                                                        <button class="btn">
                                                                                            
                                                                                            扩展
                                                                                        </button>
                                                                                        <div class="sidebar-submenu ">
                                                                                            <ul>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../database/extensions/extensions/index.html">总览</a></li>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../database/extensions/http/index.html">http: RESTful客户端</a></li>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../database/extensions/pgcron/index.html">pg_cron: 作业调度</a></li>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../database/extensions/index_advisor/index.html">index-advisor: 查询优化</a></li>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../database/extensions/pg_graphql/index.html">pg_graphql: 为PostgreSQL提供GraphQL功能</a></li>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../database/extensions/pgvector/index.html">pgvector: 嵌入向量和向量相似性</a></li>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../database/extensions/pgnet/index.html">pg_net: 异步网络</a></li>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../database/extensions/pgtap/index.html">pgTAP:单元测试</a></li>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../database/extensions/plv8/index.html">plv8: JavaScript语言</a></li>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../database/extensions/uuid-ossp/index.html">uuid-ossp: 唯一标识符</a></li>
                                                                                                
                                                                                            </ul>
                                                                                        </div>
                                                                                    </li>
                                                                                
                                                                            
                                                                                
                                                                                
                                                                                    <li class="sidebar-dropdown nested  ">
                                                                                        <button class="btn">
                                                                                            
                                                                                            配置
                                                                                        </button>
                                                                                        <div class="sidebar-submenu ">
                                                                                            <ul>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../database/setting/timeouts/index.html">超时</a></li>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../database/setting/replication/index.html">复制</a></li>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../database/setting/managing-passwords/index.html">Passwords</a></li>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../database/setting/managing-timezones/index.html">时区</a></li>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../database/setting/query-optimization/index.html">查询优化</a></li>
                                                                                                
                                                                                            </ul>
                                                                                        </div>
                                                                                    </li>
                                                                                
                                                                            
                                                                                
                                                                                
                                                                                    <li class="sidebar-dropdown nested  ">
                                                                                        <button class="btn">
                                                                                            
                                                                                            FDW
                                                                                        </button>
                                                                                        <div class="sidebar-submenu ">
                                                                                            <ul>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../database/wrappers/overview/index.html">外部数据包装器(FDW)</a></li>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../database/wrappers/airtable/index.html">Airtable</a></li>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../database/wrappers/s3/index.html">AWS S3</a></li>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../database/wrappers/bigquery/index.html">BigQuery</a></li>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../database/wrappers/clickhouse/index.html">ClickHouse</a></li>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../database/wrappers/firebase/index.html">Firebase</a></li>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../database/wrappers/logflare/index.html">Logflare</a></li>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../database/wrappers/stripe/index.html">Stripe</a></li>
                                                                                                
                                                                                            </ul>
                                                                                        </div>
                                                                                    </li>
                                                                                
                                                                            
                                                                        </ul>
                                                                    </div>
                                                                </li>
                                                            
                                                        
                                                            
                                                            
                                                                <li class="sidebar-dropdown nested  ">
                                                                    <button class="btn">
                                                                        
                                                                        无服务器API
                                                                    </button>
                                                                    <div class="sidebar-submenu ">
                                                                        <ul>
                                                                            
                                                                                
                                                                                
                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../api/api/index.html">概述</a></li>
                                                                                
                                                                            
                                                                                
                                                                                
                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../api/quickstart/index.html">2 分钟构建 API 路由</a></li>
                                                                                
                                                                            
                                                                                
                                                                                
                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../api/generating-types/index.html">生成类型</a></li>
                                                                                
                                                                            
                                                                                
                                                                                
                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../api/graphiql/index.html">GraphQL 介绍</a></li>
                                                                                
                                                                            
                                                                                
                                                                                
                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../api/postman/index.html">使用Postman访问数据</a></li>
                                                                                
                                                                            
                                                                                
                                                                                
                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../api/curl/index.html">使用cURL工具访问数据</a></li>
                                                                                
                                                                            
                                                                                
                                                                                
                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../api/securing-your-api/index.html">开始使用</a></li>
                                                                                
                                                                            
                                                                                
                                                                                
                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../api/creating-routes/index.html">创建 API 路由</a></li>
                                                                                
                                                                            
                                                                        </ul>
                                                                    </div>
                                                                </li>
                                                            
                                                        
                                                            
                                                            
                                                                <li class="sidebar-dropdown nested  ">
                                                                    <button class="btn">
                                                                        
                                                                        云函数
                                                                    </button>
                                                                    <div class="sidebar-submenu ">
                                                                        <ul>
                                                                            
                                                                                
                                                                                
                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../functions/overview/index.html">概述</a></li>
                                                                                
                                                                            
                                                                                
                                                                                
                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../functions/function-management/index.html">管理函数</a></li>
                                                                                
                                                                            
                                                                                
                                                                                
                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../functions/code-development/index.html">代码开发</a></li>
                                                                                
                                                                            
                                                                                
                                                                                
                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../functions/fn-local-test/index.html">云函数本地调试</a></li>
                                                                                
                                                                            
                                                                                
                                                                                
                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../functions/variable/index.html">环境变量</a></li>
                                                                                
                                                                            
                                                                                
                                                                                
                                                                                    <li class="sidebar-dropdown nested  ">
                                                                                        <button class="btn">
                                                                                            
                                                                                            函数示例
                                                                                        </button>
                                                                                        <div class="sidebar-submenu ">
                                                                                            <ul>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../functions/functionexample/helloworld/index.html">helloworld</a></li>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../functions/functionexample/wechatpay/index.html">wechatpay</a></li>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../functions/functionexample/raffle/index.html">抽奖示例</a></li>
                                                                                                
                                                                                            </ul>
                                                                                        </div>
                                                                                    </li>
                                                                                
                                                                            
                                                                        </ul>
                                                                    </div>
                                                                </li>
                                                            
                                                        
                                                            
                                                            
                                                                <li class="sidebar-dropdown nested  current active">
                                                                    <button class="btn">
                                                                        
                                                                        实时数据库
                                                                    </button>
                                                                    <div class="sidebar-submenu d-block">
                                                                        <ul>
                                                                            
                                                                                
                                                                                
                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../realtime/index.html">实时</a></li>
                                                                                
                                                                            
                                                                                
                                                                                
                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../quickstart/index.html">实时快速入门</a></li>
                                                                                
                                                                            
                                                                                
                                                                                
                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../postgres-cdc/index.html">Postgres CDC</a></li>
                                                                                
                                                                            
                                                                                
                                                                                
                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../rate-limits/index.html">实时速率限制</a></li>
                                                                                
                                                                            
                                                                                
                                                                                
                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../concepts/index.html">实时概念</a></li>
                                                                                
                                                                            
                                                                                
                                                                                
                                                                                    <li class="sidebar-dropdown nested  ">
                                                                                        <button class="btn">
                                                                                            
                                                                                            用法
                                                                                        </button>
                                                                                        <div class="sidebar-submenu ">
                                                                                            <ul>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../usage/broadcast/index.html">广播</a></li>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../usage/presence/index.html">Presence </a></li>
                                                                                                
                                                                                            </ul>
                                                                                        </div>
                                                                                    </li>
                                                                                
                                                                            
                                                                                
                                                                                
                                                                                    <li class="sidebar-dropdown nested  current active">
                                                                                        <button class="btn">
                                                                                            
                                                                                            指南
                                                                                        </button>
                                                                                        <div class="sidebar-submenu d-block">
                                                                                            <ul>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../client-side-throttling/index.html">限制消息</a></li>
                                                                                                
                                                                                                    
                                                                                                    <li class="current "><a class="sidebar-nested-link" href="index.html">Postgres 更改</a></li>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../realtime-with-nextjs/index.html">将 Realtime 与 Next.js 结合使用</a></li>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../subscribing-to-database-changes/index.html">订阅数据库更改</a></li>
                                                                                                
                                                                                            </ul>
                                                                                        </div>
                                                                                    </li>
                                                                                
                                                                            
                                                                                
                                                                                
                                                                                    <li class="sidebar-dropdown nested  ">
                                                                                        <button class="btn">
                                                                                            
                                                                                            深入了解
                                                                                        </button>
                                                                                        <div class="sidebar-submenu ">
                                                                                            <ul>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../deep-dive/architecture/index.html">实时架构</a></li>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../deep-dive/bring-your-own-database/index.html">自带数据库</a></li>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../deep-dive/protocol/index.html">实时协议</a></li>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../deep-dive/quotas/index.html">实时配额</a></li>
                                                                                                
                                                                                            </ul>
                                                                                        </div>
                                                                                    </li>
                                                                                
                                                                            
                                                                        </ul>
                                                                    </div>
                                                                </li>
                                                            
                                                        
                                                            
                                                            
                                                                <li class="sidebar-dropdown nested  ">
                                                                    <button class="btn">
                                                                        
                                                                        对象存储
                                                                    </button>
                                                                    <div class="sidebar-submenu ">
                                                                        <ul>
                                                                            
                                                                                
                                                                                
                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../storage/storage/index.html">概述</a></li>
                                                                                
                                                                            
                                                                                
                                                                                
                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../storage/storage-cdn/index.html">存储CDN</a></li>
                                                                                
                                                                            
                                                                        </ul>
                                                                    </div>
                                                                </li>
                                                            
                                                        
                                                            
                                                            
                                                                <li class="sidebar-dropdown nested  ">
                                                                    <button class="btn">
                                                                        
                                                                        AI 和 Vectors
                                                                    </button>
                                                                    <div class="sidebar-submenu ">
                                                                        <ul>
                                                                            
                                                                                
                                                                                
                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../ai/ai/index.html">总览</a></li>
                                                                                
                                                                            
                                                                        </ul>
                                                                    </div>
                                                                </li>
                                                            
                                                        
                                                            
                                                            
                                                                <li class="sidebar-dropdown nested  ">
                                                                    <button class="btn">
                                                                        
                                                                        静态托管
                                                                    </button>
                                                                    <div class="sidebar-submenu ">
                                                                        <ul>
                                                                            
                                                                                
                                                                                
                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../hosting/static-hosting/index.html">静态托管</a></li>
                                                                                
                                                                            
                                                                                
                                                                                
                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../hosting/static-start/index.html">快速开始</a></li>
                                                                                
                                                                            
                                                                                
                                                                                
                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../hosting/static-domain/index.html">自定义域名</a></li>
                                                                                
                                                                            
                                                                                
                                                                                
                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../hosting/real-name-authentication/index.html">实名认证</a></li>
                                                                                
                                                                            
                                                                        </ul>
                                                                    </div>
                                                                </li>
                                                            
                                                        
                                                    </ul>
                                                </div>
                                            </li>
                                        
                                    
                                        
                                        
                                            <li class="sidebar-dropdown nested  ">
                                                <button class="btn">
                                                    
                                                    SDK文档
                                                </button>
                                                <div class="sidebar-submenu ">
                                                    <ul>
                                                        
                                                            
                                                            
                                                                <li class="sidebar-dropdown nested  ">
                                                                    <button class="btn">
                                                                        
                                                                        JavaScript
                                                                    </button>
                                                                    <div class="sidebar-submenu ">
                                                                        <ul>
                                                                            
                                                                                
                                                                                
                                                                                    <li class="sidebar-dropdown nested  ">
                                                                                        <button class="btn">
                                                                                            
                                                                                            开始
                                                                                        </button>
                                                                                        <div class="sidebar-submenu ">
                                                                                            <ul>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../../sdkdocs/javascript/start/javascript/index.html">JavaScript库</a></li>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../../sdkdocs/javascript/start/installing/index.html">安装</a></li>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../../sdkdocs/javascript/start/initializing/index.html">初始化客户端</a></li>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../../sdkdocs/javascript/start/typescript-support/index.html">支持Typescript</a></li>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../../sdkdocs/javascript/start/release-notes/index.html">版本说明</a></li>
                                                                                                
                                                                                            </ul>
                                                                                        </div>
                                                                                    </li>
                                                                                
                                                                            
                                                                                
                                                                                
                                                                                    <li class="sidebar-dropdown nested  ">
                                                                                        <button class="btn">
                                                                                            
                                                                                            数据库
                                                                                        </button>
                                                                                        <div class="sidebar-submenu ">
                                                                                            <ul>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../../sdkdocs/javascript/database/select/index.html">Select 查询</a></li>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../../sdkdocs/javascript/database/insert/index.html">Insert 数据</a></li>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../../sdkdocs/javascript/database/update/index.html">Update 数据</a></li>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../../sdkdocs/javascript/database/upsert/index.html">Upsert 数据</a></li>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../../sdkdocs/javascript/database/delete/index.html">Delete 数据</a></li>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../../sdkdocs/javascript/database/rpc/index.html">调用Postgres函数</a></li>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../../sdkdocs/javascript/database/filter/index.html">过滤器</a></li>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../../sdkdocs/javascript/database/modifier/index.html">修改器</a></li>
                                                                                                
                                                                                            </ul>
                                                                                        </div>
                                                                                    </li>
                                                                                
                                                                            
                                                                                
                                                                                
                                                                                    <li class="sidebar-dropdown nested  ">
                                                                                        <button class="btn">
                                                                                            
                                                                                            认证
                                                                                        </button>
                                                                                        <div class="sidebar-submenu ">
                                                                                            <ul>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../../sdkdocs/javascript/auth/auth-api/index.html">概述</a></li>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../../sdkdocs/javascript/auth/auth-signup/index.html">signUp()</a></li>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../../sdkdocs/javascript/auth/auth-signinwithpassword/index.html">signInWithPassword()</a></li>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../../sdkdocs/javascript/auth/auth-signinwithotp/index.html">signInWithOtp()</a></li>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../../sdkdocs/javascript/auth/auth-signinwithoauth/index.html">signInWithOAuth()</a></li>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../../sdkdocs/javascript/auth/auth-signout/index.html">signOut()</a></li>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../../sdkdocs/javascript/auth/auth-resetpasswordforemail/index.html">resetPasswordForEmail()</a></li>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../../sdkdocs/javascript/auth/auth-verifyotp/index.html">通过 OTP 进行验证和登录</a></li>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../../sdkdocs/javascript/auth/auth-getsession/index.html">getSession()</a></li>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../../sdkdocs/javascript/auth/auth-refreshsession/index.html">refreshSession()</a></li>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../../sdkdocs/javascript/auth/auth-getuser/index.html">getUser()</a></li>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../../sdkdocs/javascript/auth/auth-updateuser/index.html">updateUser()</a></li>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../../sdkdocs/javascript/auth/auth-setsession/index.html">setSession()</a></li>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../../sdkdocs/javascript/auth/auth-onauthstatechange/index.html">onAuthStateChange()</a></li>
                                                                                                
                                                                                            </ul>
                                                                                        </div>
                                                                                    </li>
                                                                                
                                                                            
                                                                                
                                                                                
                                                                                    <li class="sidebar-dropdown nested  ">
                                                                                        <button class="btn">
                                                                                            
                                                                                            认证（仅限服务端）
                                                                                        </button>
                                                                                        <div class="sidebar-submenu ">
                                                                                            <ul>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../../sdkdocs/javascript/auth-admin/supabase-auth-admin-api/index.html">概览</a></li>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../../sdkdocs/javascript/auth-admin/auth-admin-getuserbyid/index.html">getUserById()</a></li>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../../sdkdocs/javascript/auth-admin/auth-admin-listusers/index.html">listUsers()</a></li>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../../sdkdocs/javascript/auth-admin/auth-admin-createuser/index.html">createUser()</a></li>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../../sdkdocs/javascript/auth-admin/auth-admin-deleteuser/index.html">deleteUser()</a></li>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../../sdkdocs/javascript/auth-admin/auth-admin-inviteuserbyemail/index.html">inviteUserByEmail()</a></li>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../../sdkdocs/javascript/auth-admin/auth-admin-generatelink/index.html">generateLink()</a></li>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../../sdkdocs/javascript/auth-admin/auth-admin-updateuserbyid/index.html">updateUserById()</a></li>
                                                                                                
                                                                                            </ul>
                                                                                        </div>
                                                                                    </li>
                                                                                
                                                                            
                                                                                
                                                                                
                                                                                    <li class="sidebar-dropdown nested  ">
                                                                                        <button class="btn">
                                                                                            
                                                                                            函数
                                                                                        </button>
                                                                                        <div class="sidebar-submenu ">
                                                                                            <ul>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../../sdkdocs/javascript/function/invoke/index.html">invoke()</a></li>
                                                                                                
                                                                                            </ul>
                                                                                        </div>
                                                                                    </li>
                                                                                
                                                                            
                                                                                
                                                                                
                                                                                    <li class="sidebar-dropdown nested  ">
                                                                                        <button class="btn">
                                                                                            
                                                                                            实时数据库
                                                                                        </button>
                                                                                        <div class="sidebar-submenu ">
                                                                                            <ul>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../../sdkdocs/javascript/realtime/subscribe/index.html">on().subscribe()</a></li>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../../sdkdocs/javascript/realtime/removechannel/index.html">removeChannel()</a></li>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../../sdkdocs/javascript/realtime/removeallchannels/index.html">removeAllChannels()</a></li>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../../sdkdocs/javascript/realtime/getchannels/index.html">getChannels()</a></li>
                                                                                                
                                                                                            </ul>
                                                                                        </div>
                                                                                    </li>
                                                                                
                                                                            
                                                                                
                                                                                
                                                                                    <li class="sidebar-dropdown nested  ">
                                                                                        <button class="btn">
                                                                                            
                                                                                            对象存储
                                                                                        </button>
                                                                                        <div class="sidebar-submenu ">
                                                                                            <ul>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../../sdkdocs/javascript/storage/storage-createbucket/index.html">createBucket()</a></li>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../../sdkdocs/javascript/storage/storage-deletebucket/index.html">deleteBucket()</a></li>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../../sdkdocs/javascript/storage/storage-from-download/index.html">from.download()</a></li>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../../sdkdocs/javascript/storage/storage-from-upload/index.html">from.upload()</a></li>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../../sdkdocs/javascript/storage/storage-from-update/index.html">from.update()</a></li>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../../sdkdocs/javascript/storage/storage-from-remove/index.html">from.remove()</a></li>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../../sdkdocs/javascript/storage/storage-from-list/index.html">from.list()</a></li>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../../sdkdocs/javascript/storage/storage-from-move/index.html">from.move()</a></li>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../../sdkdocs/javascript/storage/storage-from-copy/index.html">from.copy()</a></li>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../../sdkdocs/javascript/storage/storage-from-createsignedurl/index.html">from.createSignedUrl()</a></li>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../../sdkdocs/javascript/storage/storage-from-createsignedurls/index.html">from.createSignedUrls()</a></li>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../../sdkdocs/javascript/storage/storage-from-getpublicurl/index.html">from.getPublicUrl()</a></li>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../../sdkdocs/javascript/storage/storage-emptybucket/index.html">emptyBucket()</a></li>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../../sdkdocs/javascript/storage/storage-getbucket/index.html">getBucket()</a></li>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../../sdkdocs/javascript/storage/storage-listbuckets/index.html">listBuckets()</a></li>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../../sdkdocs/javascript/storage/storage-updatebucket/index.html">updateBucket()</a></li>
                                                                                                
                                                                                            </ul>
                                                                                        </div>
                                                                                    </li>
                                                                                
                                                                            
                                                                        </ul>
                                                                    </div>
                                                                </li>
                                                            
                                                        
                                                            
                                                            
                                                                <li class="sidebar-dropdown nested  ">
                                                                    <button class="btn">
                                                                        
                                                                        Flutter
                                                                    </button>
                                                                    <div class="sidebar-submenu ">
                                                                        <ul>
                                                                            
                                                                                
                                                                                
                                                                                    <li class="sidebar-dropdown nested  ">
                                                                                        <button class="btn">
                                                                                            
                                                                                            开始
                                                                                        </button>
                                                                                        <div class="sidebar-submenu ">
                                                                                            <ul>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../../sdkdocs/dart/start/dart/index.html">Flutter库</a></li>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../../sdkdocs/dart/start/initializing/index.html">初始化</a></li>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../../sdkdocs/dart/start/installing/index.html">安装</a></li>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../../sdkdocs/dart/start/upgrade-guide/index.html">更新</a></li>
                                                                                                
                                                                                            </ul>
                                                                                        </div>
                                                                                    </li>
                                                                                
                                                                            
                                                                                
                                                                                
                                                                                    <li class="sidebar-dropdown nested  ">
                                                                                        <button class="btn">
                                                                                            
                                                                                            数据库
                                                                                        </button>
                                                                                        <div class="sidebar-submenu ">
                                                                                            <ul>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../../sdkdocs/dart/database/select/index.html">Select 查询</a></li>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../../sdkdocs/dart/database/insert/index.html">Insert 数据</a></li>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../../sdkdocs/dart/database/update/index.html">Update 数据</a></li>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../../sdkdocs/dart/database/upsert/index.html">Upsert 数据</a></li>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../../sdkdocs/dart/database/delete/index.html">Delete 数据</a></li>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../../sdkdocs/dart/database/rpc/index.html">存储程序: rpc()</a></li>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../../sdkdocs/dart/database/filter/index.html">过滤器</a></li>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../../sdkdocs/dart/database/modifier/index.html">修改器</a></li>
                                                                                                
                                                                                            </ul>
                                                                                        </div>
                                                                                    </li>
                                                                                
                                                                            
                                                                                
                                                                                
                                                                                    <li class="sidebar-dropdown nested  ">
                                                                                        <button class="btn">
                                                                                            
                                                                                            认证
                                                                                        </button>
                                                                                        <div class="sidebar-submenu ">
                                                                                            <ul>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../../sdkdocs/dart/auth/auth-signup/index.html">signUp()</a></li>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../../sdkdocs/dart/auth/auth-signinwithpassword/index.html">signInWithPassword()</a></li>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../../sdkdocs/dart/auth/auth-signinwithotp/index.html">signInWithOtp()</a></li>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../../sdkdocs/dart/auth/auth-signinwithoauth/index.html">signInWithOAuth()</a></li>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../../sdkdocs/dart/auth/auth-signout/index.html">signOut()</a></li>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../../sdkdocs/dart/auth/auth-verifyotp/index.html">verifyOtp()</a></li>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../../sdkdocs/dart/auth/auth-currentsession/index.html">currentSession</a></li>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../../sdkdocs/dart/auth/auth-currentuser/index.html">currentUser</a></li>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../../sdkdocs/dart/auth/auth-updateuser/index.html">updateUser()</a></li>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../../sdkdocs/dart/auth/auth-onauthstatechange/index.html">onAuthStateChange()</a></li>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../../sdkdocs/dart/auth/auth-resetpasswordforemail/index.html">resetPasswordForEmail()</a></li>
                                                                                                
                                                                                            </ul>
                                                                                        </div>
                                                                                    </li>
                                                                                
                                                                            
                                                                                
                                                                                
                                                                                    <li class="sidebar-dropdown nested  ">
                                                                                        <button class="btn">
                                                                                            
                                                                                            函数
                                                                                        </button>
                                                                                        <div class="sidebar-submenu ">
                                                                                            <ul>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../../sdkdocs/dart/function/invoke/index.html">待补充</a></li>
                                                                                                
                                                                                            </ul>
                                                                                        </div>
                                                                                    </li>
                                                                                
                                                                            
                                                                                
                                                                                
                                                                                    <li class="sidebar-dropdown nested  ">
                                                                                        <button class="btn">
                                                                                            
                                                                                            实时数据库
                                                                                        </button>
                                                                                        <div class="sidebar-submenu ">
                                                                                            <ul>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../../sdkdocs/dart/realtime/stream/index.html">stream()</a></li>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../../sdkdocs/dart/realtime/subscribe/index.html">on().subscribe()</a></li>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../../sdkdocs/dart/realtime/removechannel/index.html">removeChannel()</a></li>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../../sdkdocs/dart/realtime/removeallchannels/index.html">removeAllChannels()</a></li>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../../sdkdocs/dart/realtime/getchannels/index.html">getChannels()</a></li>
                                                                                                
                                                                                            </ul>
                                                                                        </div>
                                                                                    </li>
                                                                                
                                                                            
                                                                                
                                                                                
                                                                                    <li class="sidebar-dropdown nested  ">
                                                                                        <button class="btn">
                                                                                            
                                                                                            对象存储
                                                                                        </button>
                                                                                        <div class="sidebar-submenu ">
                                                                                            <ul>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../../sdkdocs/dart/storage/storage-createbucket/index.html">createBucket()</a></li>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../../sdkdocs/dart/storage/storage-getbucket/index.html">getBucket()</a></li>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../../sdkdocs/dart/storage/storage-listbuckets/index.html">listBuckets()</a></li>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../../sdkdocs/dart/storage/storage-updatebucket/index.html">updateBucket()</a></li>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../../sdkdocs/dart/storage/storage-deletebucket/index.html">deleteBucket()</a></li>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../../sdkdocs/dart/storage/storage-emptybucket/index.html">emptyBucket()</a></li>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../../sdkdocs/dart/storage/storage-from-upload/index.html">from.upload()</a></li>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../../sdkdocs/dart/storage/storage-from-download/index.html">from.download()</a></li>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../../sdkdocs/dart/storage/storage-from-list/index.html">from.list()</a></li>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../../sdkdocs/dart/storage/storage-from-update/index.html">from.update()</a></li>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../../sdkdocs/dart/storage/storage-from-move/index.html">from.move()</a></li>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../../sdkdocs/dart/storage/storage-from-remove/index.html">from.remove()</a></li>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../../sdkdocs/dart/storage/storage-from-createsignedurl/index.html">from.createSignedUrl()</a></li>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../../sdkdocs/dart/storage/storage-from-createsignedurls/index.html">from.createSignedUrls()</a></li>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../../sdkdocs/dart/storage/storage-from-getpublicurl/index.html">from.getPublicUrl()</a></li>
                                                                                                
                                                                                            </ul>
                                                                                        </div>
                                                                                    </li>
                                                                                
                                                                            
                                                                        </ul>
                                                                    </div>
                                                                </li>
                                                            
                                                        
                                                            
                                                            
                                                                <li class="sidebar-dropdown nested  ">
                                                                    <button class="btn">
                                                                        
                                                                        微信小程序
                                                                    </button>
                                                                    <div class="sidebar-submenu ">
                                                                        <ul>
                                                                            
                                                                                
                                                                                
                                                                                    <li class="sidebar-dropdown nested  ">
                                                                                        <button class="btn">
                                                                                            
                                                                                            开始
                                                                                        </button>
                                                                                        <div class="sidebar-submenu ">
                                                                                            <ul>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../../sdkdocs/wechatsdk/start/wechat/index.html">微信小程序客户端</a></li>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../../sdkdocs/wechatsdk/start/installing/index.html">安装</a></li>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../../sdkdocs/wechatsdk/start/initializing/index.html">初始化客户端</a></li>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../../sdkdocs/wechatsdk/start/typescript-support/index.html">支持Typescript</a></li>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../../sdkdocs/wechatsdk/start/release-notes/index.html">版本说明</a></li>
                                                                                                
                                                                                            </ul>
                                                                                        </div>
                                                                                    </li>
                                                                                
                                                                            
                                                                                
                                                                                
                                                                                    <li class="sidebar-dropdown nested  ">
                                                                                        <button class="btn">
                                                                                            
                                                                                            数据库
                                                                                        </button>
                                                                                        <div class="sidebar-submenu ">
                                                                                            <ul>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../../sdkdocs/wechatsdk/database/select/index.html">Select 查询</a></li>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../../sdkdocs/wechatsdk/database/insert/index.html">Insert 数据</a></li>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../../sdkdocs/wechatsdk/database/update/index.html">Update 数据</a></li>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../../sdkdocs/wechatsdk/database/upsert/index.html">Upsert 数据</a></li>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../../sdkdocs/wechatsdk/database/delete/index.html">Delete 数据</a></li>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../../sdkdocs/wechatsdk/database/rpc/index.html">调用Postgres函数</a></li>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../../sdkdocs/wechatsdk/database/filter/index.html">过滤器</a></li>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../../sdkdocs/wechatsdk/database/modifier/index.html">修改器</a></li>
                                                                                                
                                                                                            </ul>
                                                                                        </div>
                                                                                    </li>
                                                                                
                                                                            
                                                                                
                                                                                
                                                                                    <li class="sidebar-dropdown nested  ">
                                                                                        <button class="btn">
                                                                                            
                                                                                            认证
                                                                                        </button>
                                                                                        <div class="sidebar-submenu ">
                                                                                            <ul>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../../sdkdocs/wechatsdk/auth/auth-api/index.html">概述</a></li>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../../sdkdocs/wechatsdk/auth/auth-signinwithwechat/index.html">signInWithWechat()</a></li>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../../sdkdocs/wechatsdk/auth/auth-wechatbindphone/index.html">getUnlimitedQRCode()</a></li>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../../sdkdocs/wechatsdk/auth/auth-getunlimitedqrcode/index.html">signInWithWechat()</a></li>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../../sdkdocs/wechatsdk/auth/auth-wechatbindaccount/index.html">wechatBindAccount()</a></li>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../../sdkdocs/wechatsdk/auth/auth-updateuser/index.html">updateUser()</a></li>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../../sdkdocs/wechatsdk/auth/auth-signup/index.html">signUp()</a></li>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../../sdkdocs/wechatsdk/auth/auth-signinwithpassword/index.html">signInWithPassword()</a></li>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../../sdkdocs/wechatsdk/auth/auth-signinwithotp/index.html">signInWithOtp()</a></li>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../../sdkdocs/wechatsdk/auth/auth-signinwithoauth/index.html">signInWithOAuth()</a></li>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../../sdkdocs/wechatsdk/auth/auth-signout/index.html">signOut()</a></li>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../../sdkdocs/wechatsdk/auth/auth-verifyotp/index.html">通过 OTP 进行验证和登录</a></li>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../../sdkdocs/wechatsdk/auth/auth-getsession/index.html">getSession()</a></li>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../../sdkdocs/wechatsdk/auth/auth-refreshsession/index.html">refreshSession()</a></li>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../../sdkdocs/wechatsdk/auth/auth-getuser/index.html">getUser()</a></li>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../../sdkdocs/wechatsdk/auth/auth-setsession/index.html">setSession()</a></li>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../../sdkdocs/wechatsdk/auth/auth-onauthstatechange/index.html">onAuthStateChange()</a></li>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../../sdkdocs/wechatsdk/auth/auth-resetpasswordforemail/index.html">resetPasswordForEmail()</a></li>
                                                                                                
                                                                                            </ul>
                                                                                        </div>
                                                                                    </li>
                                                                                
                                                                            
                                                                                
                                                                                
                                                                                    <li class="sidebar-dropdown nested  ">
                                                                                        <button class="btn">
                                                                                            
                                                                                            认证（仅限服务端）
                                                                                        </button>
                                                                                        <div class="sidebar-submenu ">
                                                                                            <ul>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../../sdkdocs/wechatsdk/auth-admin/auth-admin-listusers/index.html">listUsers()</a></li>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../../sdkdocs/wechatsdk/auth-admin/supabase-auth-admin-api/index.html">概览</a></li>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../../sdkdocs/wechatsdk/auth-admin/auth-admin-createuser/index.html">createUser()</a></li>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../../sdkdocs/wechatsdk/auth-admin/auth-admin-deleteuser/index.html">deleteUser()</a></li>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../../sdkdocs/wechatsdk/auth-admin/auth-admin-generatelink/index.html">generateLink()</a></li>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../../sdkdocs/wechatsdk/auth-admin/auth-admin-inviteuserbyemail/index.html">inviteUserByEmail()</a></li>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../../sdkdocs/wechatsdk/auth-admin/auth-admin-getuserbyid/index.html">getUserById()</a></li>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../../sdkdocs/wechatsdk/auth-admin/auth-admin-updateuserbyid/index.html">updateUserById()</a></li>
                                                                                                
                                                                                            </ul>
                                                                                        </div>
                                                                                    </li>
                                                                                
                                                                            
                                                                                
                                                                                
                                                                                    <li class="sidebar-dropdown nested  ">
                                                                                        <button class="btn">
                                                                                            
                                                                                            函数
                                                                                        </button>
                                                                                        <div class="sidebar-submenu ">
                                                                                            <ul>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../../sdkdocs/wechatsdk/function/invoke/index.html">invoke()</a></li>
                                                                                                
                                                                                            </ul>
                                                                                        </div>
                                                                                    </li>
                                                                                
                                                                            
                                                                                
                                                                                
                                                                                    <li class="sidebar-dropdown nested  ">
                                                                                        <button class="btn">
                                                                                            
                                                                                            实时数据库
                                                                                        </button>
                                                                                        <div class="sidebar-submenu ">
                                                                                            <ul>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../../sdkdocs/wechatsdk/realtime/subscribe/index.html">on().subscribe()</a></li>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../../sdkdocs/wechatsdk/realtime/removechannel/index.html">removeChannel()</a></li>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../../sdkdocs/wechatsdk/realtime/removeallchannels/index.html">removeAllChannels()</a></li>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../../sdkdocs/wechatsdk/realtime/getchannels/index.html">getChannels()</a></li>
                                                                                                
                                                                                            </ul>
                                                                                        </div>
                                                                                    </li>
                                                                                
                                                                            
                                                                                
                                                                                
                                                                                    <li class="sidebar-dropdown nested  ">
                                                                                        <button class="btn">
                                                                                            
                                                                                            对象存储
                                                                                        </button>
                                                                                        <div class="sidebar-submenu ">
                                                                                            <ul>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../../sdkdocs/wechatsdk/storage/storage-createbucket/index.html">createBucket()</a></li>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../../sdkdocs/wechatsdk/storage/storage-getbucket/index.html">getBucket()</a></li>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../../sdkdocs/wechatsdk/storage/storage-listbuckets/index.html">listBuckets()</a></li>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../../sdkdocs/wechatsdk/storage/storage-updatebucket/index.html">updateBucket()</a></li>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../../sdkdocs/wechatsdk/storage/storage-deletebucket/index.html">deleteBucket()</a></li>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../../sdkdocs/wechatsdk/storage/storage-emptybucket/index.html">emptyBucket()</a></li>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../../sdkdocs/wechatsdk/storage/storage-from-upload/index.html">from.upload()</a></li>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../../sdkdocs/wechatsdk/storage/storage-from-download/index.html">from.download()</a></li>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../../sdkdocs/wechatsdk/storage/storage-from-list/index.html">from.list()</a></li>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../../sdkdocs/wechatsdk/storage/storage-from-update/index.html">from.update()</a></li>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../../sdkdocs/wechatsdk/storage/storage-from-move/index.html">from.move()</a></li>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../../sdkdocs/wechatsdk/storage/storage-from-copy/index.html">from.copy()</a></li>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../../sdkdocs/wechatsdk/storage/storage-from-remove/index.html">from.remove()</a></li>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../../sdkdocs/wechatsdk/storage/storage-from-createsignedurl/index.html">from.createSignedUrl()</a></li>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../../sdkdocs/wechatsdk/storage/storage-from-createsignedurls/index.html">from.createSignedUrls()</a></li>
                                                                                                
                                                                                                    
                                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../../sdkdocs/wechatsdk/storage/storage-from-getpublicurl/index.html">from.getPublicUrl()</a></li>
                                                                                                
                                                                                            </ul>
                                                                                        </div>
                                                                                    </li>
                                                                                
                                                                            
                                                                        </ul>
                                                                    </div>
                                                                </li>
                                                            
                                                        
                                                    </ul>
                                                </div>
                                            </li>
                                        
                                    
                                        
                                        
                                            <li class="sidebar-dropdown nested  ">
                                                <button class="btn">
                                                    
                                                    最佳实践
                                                </button>
                                                <div class="sidebar-submenu ">
                                                    <ul>
                                                        
                                                            
                                                            
                                                                <li class=" "><a class="sidebar-nested-link" href="../../../../example/scaffold/index.html">前端框架的脚手架</a></li>
                                                            
                                                        
                                                            
                                                            
                                                                <li class="sidebar-dropdown nested  ">
                                                                    <button class="btn">
                                                                        
                                                                        微信小程序
                                                                    </button>
                                                                    <div class="sidebar-submenu ">
                                                                        <ul>
                                                                            
                                                                                
                                                                                
                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../../example/wechat/timetable/index.html">Super课表小程序</a></li>
                                                                                
                                                                            
                                                                                
                                                                                
                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../../example/wechat/hellobbs/index.html">BBS论坛小程序</a></li>
                                                                                
                                                                            
                                                                                
                                                                                
                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../../example/wechat/notclickwhite/index.html">别踩白块游戏小程序</a></li>
                                                                                
                                                                            
                                                                                
                                                                                
                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../../example/wechat/wechatroom/index.html">微信小程序聊天室</a></li>
                                                                                
                                                                            
                                                                        </ul>
                                                                    </div>
                                                                </li>
                                                            
                                                        
                                                            
                                                            
                                                                <li class="sidebar-dropdown nested  ">
                                                                    <button class="btn">
                                                                        
                                                                        Web
                                                                    </button>
                                                                    <div class="sidebar-submenu ">
                                                                        <ul>
                                                                            
                                                                                
                                                                                
                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../../example/web/postsforum/index.html">Posts社交网络论坛</a></li>
                                                                                
                                                                            
                                                                                
                                                                                
                                                                                    <li class=" "><a class="sidebar-nested-link" href="../../../../example/web/playground/index.html">实时游戏场</a></li>
                                                                                
                                                                            
                                                                        </ul>
                                                                    </div>
                                                                </li>
                                                            
                                                        
                                                    </ul>
                                                </div>
                                            </li>
                                        
                                    
                                </ul>
                            </div>
                        </li>
                    
                
                    
                    
                        <li class="sidebar-dropdown  ">
                            <button class="btn">
                                <i class="material-icons me-2">database</i>
                                云数据库
                            </button>
                            <div class="sidebar-submenu ">
                                <ul>
                                    
                                        
                                        
                                            <li class=" "><a class="sidebar-nested-link" href="../../../../../db/db-introduction/index.html">介绍</a></li>
                                        
                                    
                                        
                                        
                                            <li class=" "><a class="sidebar-nested-link" href="../../../../../db/database-management/index.html">数据库管理</a></li>
                                        
                                    
                                        
                                        
                                            <li class=" "><a class="sidebar-nested-link" href="../../../../../db/account-management/index.html">账号管理</a></li>
                                        
                                    
                                        
                                        
                                            <li class=" "><a class="sidebar-nested-link" href="../../../../../db/backup-and-recovery/index.html">备份恢复</a></li>
                                        
                                    
                                        
                                        
                                            <li class=" "><a class="sidebar-nested-link" href="../../../../../db/online-sql-editor/index.html">在线SQL编辑器</a></li>
                                        
                                    
                                        
                                        
                                            <li class=" "><a class="sidebar-nested-link" href="../../../../../db/client-connection/index.html">客户端工具</a></li>
                                        
                                    
                                        
                                        
                                            <li class=" "><a class="sidebar-nested-link" href="../../../../../db/introduction-to-sql-operation/index.html">SQL操作入门</a></li>
                                        
                                    
                                        
                                        
                                            <li class="sidebar-dropdown nested  ">
                                                <button class="btn">
                                                    
                                                    开发示例
                                                </button>
                                                <div class="sidebar-submenu ">
                                                    <ul>
                                                        
                                                            
                                                            
                                                                <li class=" "><a class="sidebar-nested-link" href="../../../../../db/example/python-example/index.html">Python2示例</a></li>
                                                            
                                                        
                                                            
                                                            
                                                                <li class=" "><a class="sidebar-nested-link" href="../../../../../db/example/python3-example/index.html">Python3示例</a></li>
                                                            
                                                        
                                                            
                                                            
                                                                <li class=" "><a class="sidebar-nested-link" href="../../../../../db/example/java-example/index.html">Java示例</a></li>
                                                            
                                                        
                                                            
                                                            
                                                                <li class=" "><a class="sidebar-nested-link" href="../../../../../db/example/golang-example/index.html">Golang示例</a></li>
                                                            
                                                        
                                                            
                                                            
                                                                <li class=" "><a class="sidebar-nested-link" href="../../../../../db/example/spring-example/index.html">Spring示例</a></li>
                                                            
                                                        
                                                            
                                                            
                                                                <li class=" "><a class="sidebar-nested-link" href="../../../../../db/example/node-example/index.html">Node示例</a></li>
                                                            
                                                        
                                                            
                                                            
                                                                <li class=" "><a class="sidebar-nested-link" href="../../../../../db/example/c%2b%2b-example/index.html">C&#43;&#43;示例</a></li>
                                                            
                                                        
                                                            
                                                            
                                                                <li class=" "><a class="sidebar-nested-link" href="../../../../../db/example/c-example/index.html">C#示例</a></li>
                                                            
                                                        
                                                            
                                                            
                                                                <li class=" "><a class="sidebar-nested-link" href="../../../../../db/example/c2-example/index.html">C示例</a></li>
                                                            
                                                        
                                                            
                                                            
                                                                <li class=" "><a class="sidebar-nested-link" href="../../../../../db/example/development-example/index.html"></a></li>
                                                            
                                                        
                                                    </ul>
                                                </div>
                                            </li>
                                        
                                    
                                        
                                        
                                            <li class=" "><a class="sidebar-nested-link" href="../../../../../db/memfiredb-data-migration/index.html">数据迁移</a></li>
                                        
                                    
                                        
                                        
                                            <li class="sidebar-dropdown nested  ">
                                                <button class="btn">
                                                    
                                                    参考指南
                                                </button>
                                                <div class="sidebar-submenu ">
                                                    <ul>
                                                        
                                                            
                                                            
                                                                <li class=" "><a class="sidebar-nested-link" href="../../../../../db/guides/compatibility/index.html">兼容性说明</a></li>
                                                            
                                                        
                                                            
                                                            
                                                                <li class=" "><a class="sidebar-nested-link" href="../../../../../db/guides/keyword/index.html">关键字</a></li>
                                                            
                                                        
                                                            
                                                            
                                                                <li class=" "><a class="sidebar-nested-link" href="../../../../../db/guides/data-type/index.html">数据类型</a></li>
                                                            
                                                        
                                                            
                                                            
                                                                <li class=" "><a class="sidebar-nested-link" href="../../../../../db/guides/sql-grammar/index.html">SQL语法</a></li>
                                                            
                                                        
                                                            
                                                            
                                                                <li class=" "><a class="sidebar-nested-link" href="../../../../../db/guides/functions-and-operations/index.html">函数与操作</a></li>
                                                            
                                                        
                                                    </ul>
                                                </div>
                                            </li>
                                        
                                    
                                </ul>
                            </div>
                        </li>
                    
                
                    
                        
                        <li class="">
                            <a class="sidebar-root-link" href="../../../../../contactus/index.html">
                                <i class="material-icons me-2">article</i>
                                
                                联系我们
                            </a>
                        </li>
                    
                
                    
                        
                        <li class="">
                            <a class="sidebar-root-link" href="../../../../../frequently-asked-questions/index.html">
                                <i class="material-icons me-2">quiz</i>
                                
                                常见问题解答（FAQ）
                            </a>
                        </li>
                    
                
            
        </ul>
        
    </div>
    
        <ul class="sidebar-footer list-unstyled mb-0">
            
        </ul>
    
</nav>

                    <main class="page-content bg-transparent">
                        
<div id="top-header" class="top-header d-print-none">
    <div class="header-bar d-flex justify-content-between">
        <div class="d-flex align-items-center">
            <a href='https://docs.memfiredb.com/' class="logo-icon me-3" aria-label="HomePage" alt="HomePage">
                <div class="small">
                    
                            <?xml version="1.0" encoding="UTF-8"?>
<svg width="99px" height="112px" viewBox="0 0 99 112" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
    <title>MemFireDB备份 6</title>
    <defs>
        <linearGradient x1="49.9999885%" y1="98.082503%" x2="49.9999885%" y2="0.766550128%" id="linearGradient-1">
            <stop stop-color="#ED1C23" offset="0%"></stop>
            <stop stop-color="#FBAF3B" offset="100%"></stop>
        </linearGradient>
    </defs>
    <g id="定稿" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
        <g id="MemFireDB备份-6">
            <polygon id="Fill-1" fill="#F9AE7C" points="25.9728553 40.7912363 47.4268317 0.00591833831 1.15453123 26.7215251"></polygon>
            <polygon id="Fill-3" fill="#F9AE7C" points="97.4213117 26.7267606 51.1285247 0.000910513587 72.4242993 40.8351686"></polygon>
            <polygon id="Fill-5" fill="#F9904A" points="24.8347133 42.7618153 0.000455256793 28.682999 0.000455256793 82.1608764"></polygon>
            <polygon id="Fill-7" fill="url(#linearGradient-1)" points="27.6634514 42.4662399 49.279044 109.05096 70.7296059 42.507213 49.2779058 1.3747617"></polygon>
            <polygon id="Fill-9" fill="#F9904A" points="98.5660549 28.6951771 73.5622137 42.8047233 98.5660549 82.1719163"></polygon>
            <polygon id="Fill-13" fill="#FB6D33" points="72.2987623 45.061545 50.7514582 111.900071 97.579172 84.8646465"></polygon>
            <polygon id="Fill-15" fill="#FB6D33" points="26.1006687 45.0226206 0.987565799 84.8644188 47.8095888 111.898705"></polygon>
            <path d="M60.0737516,38.507213 C59.3168872,35.669825 57.0462939,33.3514298 57.0462939,33.3514298 C57.0462939,33.3514298 57.0804382,35.8849338 56.2894295,37.513615 C55.4847631,39.1696116 53.8765685,40.3054773 53.8765685,40.3054773 C53.8765685,40.3054773 56.1016361,33.8840802 54.2715038,30.1247973 C52.0259496,25.5073552 49.1771803,23.3357803 49.1771803,23.3357803 C49.1771803,23.3357803 50.1070423,28.1319107 48.6240432,31.5065016 C47.1672215,34.8264618 42.8058614,36.7260208 40.7241997,38.7132167 C39.1865699,40.1791435 38.0814341,43.0711623 37.6068289,44.4847347 C37.5715465,44.5883056 37.560165,44.6918765 37.5533362,44.7943093 C37.584066,43.9816759 37.8890881,39.8024186 40.9654858,37.4293925 C43.8404325,35.2111538 41.2431925,30.3478731 41.2431925,30.3478731 C41.2431925,30.3478731 41.7212121,32.5638355 40.9939394,34.1401622 C40.2655285,35.7153507 38.7187936,36.5962726 38.0154218,38.259098 C37.3883056,39.7409589 37.5203301,44.1432921 37.5453692,44.8409731 C37.5453692,44.8591834 37.5476455,44.8762555 37.5476455,44.8921895 C37.5476455,44.9263338 37.5487836,44.9456822 37.5487836,44.9456822 L37.5487836,44.9115379 C37.5590269,45.2655001 37.7138142,45.6080808 37.9972116,45.8448143 L48.3713757,55.6442168 C48.8380139,56.0323232 49.5163466,56.0334614 49.9841229,55.6476312 L60.5938825,45.7105136 C60.9034571,45.4544316 61.0719021,45.0686015 61.0457249,44.6656992 C60.9546735,43.2282259 60.5699815,40.3692133 60.0737516,38.507213" id="Fill-17" fill="#FFFFFF"></path>
        </g>
    </g>
</svg>
                    
                </div>
                <div class="big">
                    
                           <svg width="232" height="20" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 232 20">
  <g fill="none" fill-rule="evenodd">
    <text 
      x="50%" 
      y="50%" 
      font-family="Arial, sans-serif" 
      font-size="18" 
      font-weight="bold" 
      fill="#000" 
      text-anchor="middle" 
      dominant-baseline="middle">
      VFORM
    </text>
  </g>
</svg>
                    
                </div>
            </a>
            <button id="close-sidebar" class="btn btn-icon btn-soft">
                <span class="material-icons size-20 menu-icon align-middle">menu</span>
            </button>
            
            </div>

        <div class="d-flex align-items-center">
            <ul class="list-unstyled mb-0">
                
            </ul>
            <a  class="btn btn-icon btn-default ms-4"  type="button" href="https://memfiredb.com/"  target="_blank" >官网</a>
            <a  class="btn btn-icon btn-default ms-4" type="button" href="https://community.memfiredb.com/"  target="_blank"  >论坛</a>
            <a  class="btn btn-icon btn-default ms-4" type="button" href="https://cloud.memfiredb.com/auth/login"  target="_blank"  >登录</a>
            <button id="mode" class="btn btn-icon btn-default ms-2" type="button" aria-label="Toggle user interface mode">
                <span class="toggle-dark">
                    <svg xmlns="http://www.w3.org/2000/svg" height="30" width="30" viewBox="0 0 48 48" fill="currentColor">
                        <title>Enable dark mode</title>
                        <path d="M24 42q-7.5 0-12.75-5.25T6 24q0-7.5 5.25-12.75T24 6q.4 0 .85.025.45.025 1.15.075-1.8 1.6-2.8 3.95-1 2.35-1 4.95 0 4.5 3.15 7.65Q28.5 25.8 33 25.8q2.6 0 4.95-.925T41.9 22.3q.05.6.075.975Q42 23.65 42 24q0 7.5-5.25 12.75T24 42Zm0-3q5.45 0 9.5-3.375t5.05-7.925q-1.25.55-2.675.825Q34.45 28.8 33 28.8q-5.75 0-9.775-4.025T19.2 15q0-1.2.25-2.575.25-1.375.9-3.125-4.9 1.35-8.125 5.475Q9 18.9 9 24q0 6.25 4.375 10.625T24 39Zm-.2-14.85Z"/>
                    </svg>
                </span>
                <span class="toggle-light">
                    <svg xmlns="http://www.w3.org/2000/svg" height="30" width="30" viewBox="0 0 48 48" fill="currentColor">
                        <title>Enable light mode</title>
                        <path d="M24 31q2.9 0 4.95-2.05Q31 26.9 31 24q0-2.9-2.05-4.95Q26.9 17 24 17q-2.9 0-4.95 2.05Q17 21.1 17 24q0 2.9 2.05 4.95Q21.1 31 24 31Zm0 3q-4.15 0-7.075-2.925T14 24q0-4.15 2.925-7.075T24 14q4.15 0 7.075 2.925T34 24q0 4.15-2.925 7.075T24 34ZM3.5 25.5q-.65 0-1.075-.425Q2 24.65 2 24q0-.65.425-1.075Q2.85 22.5 3.5 22.5h5q.65 0 1.075.425Q10 23.35 10 24q0 .65-.425 1.075-.425.425-1.075.425Zm36 0q-.65 0-1.075-.425Q38 24.65 38 24q0-.65.425-1.075.425-.425 1.075-.425h5q.65 0 1.075.425Q46 23.35 46 24q0 .65-.425 1.075-.425.425-1.075.425ZM24 10q-.65 0-1.075-.425Q22.5 9.15 22.5 8.5v-5q0-.65.425-1.075Q23.35 2 24 2q.65 0 1.075.425.425.425.425 1.075v5q0 .65-.425 1.075Q24.65 10 24 10Zm0 36q-.65 0-1.075-.425-.425-.425-.425-1.075v-5q0-.65.425-1.075Q23.35 38 24 38q.65 0 1.075.425.425.425.425 1.075v5q0 .65-.425 1.075Q24.65 46 24 46ZM12 14.1l-2.85-2.8q-.45-.45-.425-1.075.025-.625.425-1.075.45-.45 1.075-.45t1.075.45L14.1 12q.4.45.4 1.05 0 .6-.4 1-.4.45-1.025.45-.625 0-1.075-.4Zm24.7 24.75L33.9 36q-.4-.45-.4-1.075t.45-1.025q.4-.45 1-.45t1.05.45l2.85 2.8q.45.45.425 1.075-.025.625-.425 1.075-.45.45-1.075.45t-1.075-.45ZM33.9 14.1q-.45-.45-.45-1.05 0-.6.45-1.05l2.8-2.85q.45-.45 1.075-.425.625.025 1.075.425.45.45.45 1.075t-.45 1.075L36 14.1q-.4.4-1.025.4-.625 0-1.075-.4ZM9.15 38.85q-.45-.45-.45-1.075t.45-1.075L12 33.9q.45-.45 1.05-.45.6 0 1.05.45.45.45.45 1.05 0 .6-.45 1.05l-2.8 2.85q-.45.45-1.075.425-.625-.025-1.075-.425ZM24 24Z"/>
                    </svg>
                </span>
            </button>
            
        </div>
    </div>
    
    
    
</div>

                            <div class="container-fluid">
                                <div class="layout-spacing">
                                    
                                        <div class="d-md-flex justify-content-between align-items-center"><nav aria-label="breadcrumb" class="d-inline-block pb-2 mt-1 mt-sm-0">
    <ul id="breadcrumbs" class="breadcrumb bg-transparent mb-0" itemscope itemtype="https://schema.org/BreadcrumbList">
        
            
                <li class="breadcrumb-item text-capitalize active" aria-current="page" itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem">
                    <a itemprop="item" href="../../../../../index.html">
                        <i class="material-icons size-20 align-text-bottom" itemprop="name">Home</i>
                    </a>
                    <meta itemprop="position" content='1' />
                </li>
            
            
                <li class="breadcrumb-item text-capitalize" itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem">
                    <a itemprop="item" href="../../../../index.html">
                        <span itemprop="name">应用开发</span>
                    </a>
                    <meta itemprop="position" content='2' />
                </li>
            
            
                <li class="breadcrumb-item text-capitalize" itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem">
                    <a itemprop="item" href="../../../index.html">
                        <span itemprop="name">开发指南</span>
                    </a>
                    <meta itemprop="position" content='3' />
                </li>
            
            
                <li class="breadcrumb-item text-capitalize" itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem">
                    <a itemprop="item" href="../../index.html">
                        <span itemprop="name">实时数据库</span>
                    </a>
                    <meta itemprop="position" content='4' />
                </li>
            
            
                <li class="breadcrumb-item text-capitalize" itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem">
                    <a itemprop="item" href="../index.html">
                        <span itemprop="name">指南</span>
                    </a>
                    <meta itemprop="position" content='5' />
                </li>
            
        
            <li class="breadcrumb-item text-capitalize active" itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem">
                <span itemprop="name">Postgres 更改</span>
                <meta itemprop="position" content='6' />
            </li>
        
    </ul>
</nav></div>
                                    
                                    <div class="row flex-xl-nowrap">
                                        
                                        <div class="docs-toc col-xl-3    d-xl-block"><toc>
    <div class="fw-bold text-uppercase mb-2">本页</div>
    <nav id="toc">
  <ul>
    <li>
      <ul>
        <li><a href="#快速入门">快速入门</a></li>
        <li><a href="#step1使用todos表设置-memfire-cloud-项目">step1:使用“todos”表设置 MemFire Cloud 项目</a></li>
        <li><a href="#step2允许匿名访问">step2:允许匿名访问</a></li>
        <li><a href="#step3启用-postgres-复制">step3:启用 Postgres 复制</a></li>
        <li><a href="#step4安装客户端">step4:安装客户端</a></li>
        <li><a href="#step5创建客户端">step5:创建客户端</a></li>
        <li><a href="#step6按schemas侦听更改">step6:按schemas侦听更改</a></li>
        <li><a href="#step7插入虚拟数据">step7:插入虚拟数据</a></li>
        <li><a href="#用法">用法</a>
          <ul>
            <li><a href="#侦听特定schemas">侦听特定schemas</a></li>
            <li><a href="#侦听-insert-事件">侦听 INSERT 事件</a></li>
            <li><a href="#侦听-update-事件">侦听 UPDATE 事件</a></li>
            <li><a href="#侦听-delete-事件">侦听 DELETE 事件</a></li>
            <li><a href="#监听特定表">监听特定表</a></li>
            <li><a href="#监听多个更改">监听多个更改</a></li>
            <li><a href="#筛选特定更改">筛选特定更改</a></li>
          </ul>
        </li>
        <li><a href="#可用的过滤器">可用的过滤器</a>
          <ul>
            <li><a href="#等于-eq">等于 （eq）</a></li>
            <li><a href="#不等于-neq">不等于 （neq）</a></li>
            <li><a href="#小于-lt">小于 （lt）</a></li>
            <li><a href="#小于或等于-lte">小于或等于 （lte）</a></li>
            <li><a href="#大于-gt">大于 （gt）</a></li>
            <li><a href="#大于或等于-gte">大于或等于 （gte）</a></li>
            <li><a href="#包含在清单中-in">包含在清单中 （in）</a></li>
          </ul>
        </li>
        <li><a href="#接收旧-记录">接收<code>旧 </code>记录</a></li>
        <li><a href="#私有-schemas">私有 schemas</a></li>
        <li><a href="#自定义令牌">自定义令牌</a>
          <ul>
            <li><a href="#刷新的令牌">刷新的令牌</a></li>
          </ul>
        </li>
        <li><a href="#局限性">局限性</a>
          <ul>
            <li><a href="#删除事件不可筛选">删除事件不可筛选</a></li>
            <li><a href="#表名中的空格">表名中的空格</a></li>
            <li><a href="#数据库实例和实时性能">数据库实例和实时性能</a></li>
          </ul>
        </li>
      </ul>
    </li>
  </ul>
</nav>
    </toc></div>
                                        
                                        
                                        <div class="docs-toc-mobile    d-print-none d-xl-none">
                                            <button id="toc-dropdown-btn" class="btn-secondary dropdown-toggle" type="button" data-bs-toggle="dropdown" data-bs-offset="0,0" aria-expanded="false">
                                                Table of Contents
                                            </button>
<nav id="toc-mobile">
  <ul class="dropdown-menu">
    <li>
      <ul>
        <li><a href="#快速入门">快速入门</a></li>
        <li><a href="#step1使用todos表设置-memfire-cloud-项目">step1:使用“todos”表设置 MemFire Cloud 项目</a></li>
        <li><a href="#step2允许匿名访问">step2:允许匿名访问</a></li>
        <li><a href="#step3启用-postgres-复制">step3:启用 Postgres 复制</a></li>
        <li><a href="#step4安装客户端">step4:安装客户端</a></li>
        <li><a href="#step5创建客户端">step5:创建客户端</a></li>
        <li><a href="#step6按schemas侦听更改">step6:按schemas侦听更改</a></li>
        <li><a href="#step7插入虚拟数据">step7:插入虚拟数据</a></li>
        <li><a href="#用法">用法</a>
          <ul>
            <li><a href="#侦听特定schemas">侦听特定schemas</a></li>
            <li><a href="#侦听-insert-事件">侦听 INSERT 事件</a></li>
            <li><a href="#侦听-update-事件">侦听 UPDATE 事件</a></li>
            <li><a href="#侦听-delete-事件">侦听 DELETE 事件</a></li>
            <li><a href="#监听特定表">监听特定表</a></li>
            <li><a href="#监听多个更改">监听多个更改</a></li>
            <li><a href="#筛选特定更改">筛选特定更改</a></li>
          </ul>
        </li>
        <li><a href="#可用的过滤器">可用的过滤器</a>
          <ul>
            <li><a href="#等于-eq">等于 （eq）</a></li>
            <li><a href="#不等于-neq">不等于 （neq）</a></li>
            <li><a href="#小于-lt">小于 （lt）</a></li>
            <li><a href="#小于或等于-lte">小于或等于 （lte）</a></li>
            <li><a href="#大于-gt">大于 （gt）</a></li>
            <li><a href="#大于或等于-gte">大于或等于 （gte）</a></li>
            <li><a href="#包含在清单中-in">包含在清单中 （in）</a></li>
          </ul>
        </li>
        <li><a href="#接收旧-记录">接收<code>旧 </code>记录</a></li>
        <li><a href="#私有-schemas">私有 schemas</a></li>
        <li><a href="#自定义令牌">自定义令牌</a>
          <ul>
            <li><a href="#刷新的令牌">刷新的令牌</a></li>
          </ul>
        </li>
        <li><a href="#局限性">局限性</a>
          <ul>
            <li><a href="#删除事件不可筛选">删除事件不可筛选</a></li>
            <li><a href="#表名中的空格">表名中的空格</a></li>
            <li><a href="#数据库实例和实时性能">数据库实例和实时性能</a></li>
          </ul>
        </li>
      </ul>
    </li>
  </ul>
</nav></div>
                                        <div class="docs-content col-12 col-xl-9 mt-0">
                                            <div class="mb-0 d-flex">
                                                
                                                <h1 class="content-title mb-0">
                                                    Postgres 更改
                                                    
                                                </h1>
                                            </div>
                                            
                                            <div id="content" class="main-content" data-bs-spy="scroll" data-bs-root-margin="0px 0px -65%" data-bs-target="#toc-mobile">
                                                
    
    <div data-prismjs-copy="" data-prismjs-copy-success="" data-prismjs-copy-error="">
        <p>让我们探讨如何使用 Realtime 的 Postgres Changes 功能来监听数据库事件。</p>
<h2 id="快速入门">快速入门 <a href="#%e5%bf%ab%e9%80%9f%e5%85%a5%e9%97%a8" class="anchor" aria-hidden="true"><i class="material-icons align-middle">link</i></a></h2><p>在此示例中，我们将设置一个数据库表，使用行级别安全性保护它，并使用 MemFire Cloud 客户端库订阅所有更改。</p>
<h2 id="step1使用todos表设置-memfire-cloud-项目">step1:使用“todos”表设置 MemFire Cloud 项目 <a href="#step1%e4%bd%bf%e7%94%a8todos%e8%a1%a8%e8%ae%be%e7%bd%ae-memfire-cloud-%e9%a1%b9%e7%9b%ae" class="anchor" aria-hidden="true"><i class="material-icons align-middle">link</i></a></h2><p><a href="https://cloud.memfiredb.com/project" rel="external" target="_blank">创建一个新项目<svg width="16" height="16" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path fill="currentColor" d="M14 5c-.552 0-1-.448-1-1s.448-1 1-1h6c.552 0 1 .448 1 1v6c0 .552-.448 1-1 1s-1-.448-1-1v-3.586l-7.293 7.293c-.391.39-1.024.39-1.414 0-.391-.391-.391-1.024 0-1.414l7.293-7.293h-3.586zm-9 2c-.552 0-1 .448-1 1v11c0 .552.448 1 1 1h11c.552 0 1-.448 1-1v-4.563c0-.552.448-1 1-1s1 .448 1 1v4.563c0 1.657-1.343 3-3 3h-11c-1.657 0-3-1.343-3-3v-11c0-1.657 1.343-3 3-3h4.563c.552 0 1 .448 1 1s-.448 1-1 1h-4.563z"/></svg></a>.</p>
<p>项目准备就绪后，在MemFire Cloud数据库中创建一个表。您可以使用 Table 接口或 SQL 编辑器执行此操作。</p>

<nav>
	<div class="nav nav-tabs" id="nav-tab" role="tablist">

		
		
		
		

		

		<a class="nav-link  active"
		   id="deafbcTab" data-bs-toggle="tab" data-bs-target="#deafbc"
		   type="button" role="tab" aria-controls="deafbc" aria-selected="true">SQL</a>

		

		<a class="nav-link "
		   id="faedcbTab" data-bs-toggle="tab" data-bs-target="#faedcb"
		   type="button" role="tab" aria-controls="faedcb" aria-selected="true">Dashboard</a>

		

	</div>
</nav>

<div class="tab-content" id="nav-tab-content">

	







<div class="tab-pane fade show active" id="deafbc" role="tabpanel" aria-labelledby="nav-1">

	


  
  
  

  
  
  
  

  

  <div class="prism-codeblock ">
  <pre id="40b5f99" class="language-sql ">
  <code>-- Create a table called &#34;todos&#34;
-- with a column to store tasks.
create table todos (
  id serial primary key,
  task text
);</code>
  </pre>
  </div>


</div>






<div class="tab-pane fade" id="faedcb" role="tabpanel" aria-labelledby="nav-1">

	<video width="99%" muted playsInline controls={true}>
  <source
    src="https://xguihxuzqibwxjnimxev.supabase.co/storage/v1/object/public/videos/docs/api/api-create-table-sm.mp4"
    type="video/mp4"
  />
</video>


</div>


</div>
<h2 id="step2允许匿名访问">step2:允许匿名访问 <a href="#step2%e5%85%81%e8%ae%b8%e5%8c%bf%e5%90%8d%e8%ae%bf%e9%97%ae" class="anchor" aria-hidden="true"><i class="material-icons align-middle">link</i></a></h2><p>在此示例中，我们将为此表启用<a data-bs-delay="{&#34;hide&#34;:300,&#34;show&#34;:550}" data-bs-html="true" data-bs-title="<a href='../../../auth/mandates/row-level-security/index.html'><p>授权</p><strong>行级别安全性</strong><br>使用Postgres行级安全保护您的数据。</a>" data-bs-toggle="tooltip" href="/docs/app/development_guide/auth/mandates/row-level-security/">行级别安全</a>性并允许匿名访问。在生产环境中，请务必使用适当的权限保护应用程序。</p>



  
  
  

  
  
  
  

  

  <div class="prism-codeblock ">
  <pre id="ff2cad0" class="language-sql ">
  <code>-- Turn on security
alter table &#34;todos&#34;
enable row level security;

-- Allow anonymous access
create policy &#34;Allow anonymous access&#34;
on todos
for select
to anon
using (true);</code>
  </pre>
  </div>
<h2 id="step3启用-postgres-复制">step3:启用 Postgres 复制 <a href="#step3%e5%90%af%e7%94%a8-postgres-%e5%a4%8d%e5%88%b6" class="anchor" aria-hidden="true"><i class="material-icons align-middle">link</i></a></h2><p>转到项目的&rsquo;数据库&rsquo;-&gt;[Replication]设置，然后在<code>supabase_realtime</code>下，打开要收听的表。</p>
<h2 id="step4安装客户端">step4:安装客户端 <a href="#step4%e5%ae%89%e8%a3%85%e5%ae%a2%e6%88%b7%e7%ab%af" class="anchor" aria-hidden="true"><i class="material-icons align-middle">link</i></a></h2><p>安装 Supabase JavaScript 客户端。</p>



  
  
  

  
  
  
  

  

  <div class="prism-codeblock ">
  <pre id="6de869e" class="language-bash ">
  <code>  npm install @supabase/supabase-js</code>
  </pre>
  </div>
<h2 id="step5创建客户端">step5:创建客户端 <a href="#step5%e5%88%9b%e5%bb%ba%e5%ae%a2%e6%88%b7%e7%ab%af" class="anchor" aria-hidden="true"><i class="material-icons align-middle">link</i></a></h2><p>此客户端将用于侦听 Postgres 更改。</p>



  
  
  

  
  
  
  

  

  <div class="prism-codeblock ">
  <pre id="45dc962" class="language-js ">
  <code>  import { createClient } from &#39;@supabase/supabase-js&#39;

  const client = createClient(
    &#39;https://&lt;project&gt;.supabase.co&#39;,
    &#39;&lt;your-anon-key&gt;&#39;
  )</code>
  </pre>
  </div>
<h2 id="step6按schemas侦听更改">step6:按schemas侦听更改 <a href="#step6%e6%8c%89schemas%e4%be%a6%e5%90%ac%e6%9b%b4%e6%94%b9" class="anchor" aria-hidden="true"><i class="material-icons align-middle">link</i></a></h2><p>通过将 <code>schema</code> 属性设置为 &lsquo;public&rsquo; 并将事件名称设置为 <code>*</code>，侦听 public 架构中所有表的更改。事件名称可以是以下项之一：</p>
<ul>
<li><code>INSERT</code></li>
<li><code>UPDATE</code></li>
<li><code>DELETE</code></li>
<li><code>*</code></li>
</ul>
<p>通道名称可以是除“realtime”之外的任何字符串。</p>



  
  
  

  
  
  
  

  

  <div class="prism-codeblock ">
  <pre id="bf0dbd3" class="language-js ">
  <code>  const channelA = client
    .channel(&#39;schema-db-changes&#39;)
    .on(
      &#39;postgres_changes&#39;,
      {
        event: &#39;*&#39;,
        schema: &#39;public&#39;,
      },
      (payload) =&gt; console.log(payload)
    )
    .subscribe()</code>
  </pre>
  </div>
<h2 id="step7插入虚拟数据">step7:插入虚拟数据 <a href="#step7%e6%8f%92%e5%85%a5%e8%99%9a%e6%8b%9f%e6%95%b0%e6%8d%ae" class="anchor" aria-hidden="true"><i class="material-icons align-middle">link</i></a></h2><p>现在我们可以向表中添加一些数据，这些数据将触发 <code>channelA</code> 事件处理程序。</p>



  
  
  

  
  
  
  

  

  <div class="prism-codeblock ">
  <pre id="7627917" class="language-sql ">
  <code>insert into todos (task)
values
  (&#39;Change!&#39;);</code>
  </pre>
  </div>
<h2 id="用法">用法 <a href="#%e7%94%a8%e6%b3%95" class="anchor" aria-hidden="true"><i class="material-icons align-middle">link</i></a></h2><p>您可以使用 Supabase 客户端库来订阅数据库更改。</p>
<h3 id="侦听特定schemas">侦听特定schemas <a href="#%e4%be%a6%e5%90%ac%e7%89%b9%e5%ae%9aschemas" class="anchor" aria-hidden="true"><i class="material-icons align-middle">link</i></a></h3><p>使用 schema 参数订阅特定架构事件：</p>

<nav>
	<div class="nav nav-tabs" id="nav-tab" role="tablist">

		
		
		
		

		

		<a class="nav-link  active"
		   id="bdafceTab" data-bs-toggle="tab" data-bs-target="#bdafce"
		   type="button" role="tab" aria-controls="bdafce" aria-selected="true">JavaScript</a>

		

		<a class="nav-link "
		   id="edcabfTab" data-bs-toggle="tab" data-bs-target="#edcabf"
		   type="button" role="tab" aria-controls="edcabf" aria-selected="true">Dart</a>

		

		<a class="nav-link "
		   id="dfebcaTab" data-bs-toggle="tab" data-bs-target="#dfebca"
		   type="button" role="tab" aria-controls="dfebca" aria-selected="true">Kotlin</a>

		

	</div>
</nav>

<div class="tab-content" id="nav-tab-content">

	






<div class="tab-pane fade show active" id="bdafce" role="tabpanel" aria-labelledby="nav-1">

	


  
  
  

  
  
  
  

  

  <div class="prism-codeblock ">
  <pre id="56aa0e9" class="language-js ">
  <code>const changes = client
  .channel(&#39;schema-db-changes&#39;)
  .on(
    &#39;postgres_changes&#39;,
    {
      schema: &#39;public&#39;, // Subscribes to the &#34;public&#34; schema in Postgres
      event: &#39;*&#39;,       // Listen to all changes
    },
    (payload) =&gt; console.log(payload)
  )
  .subscribe()</code>
  </pre>
  </div>


</div>






<div class="tab-pane fade" id="edcabf" role="tabpanel" aria-labelledby="nav-1">

	


  
  
  

  
  
  
  

  

  <div class="prism-codeblock ">
  <pre id="4174fe0" class="language-dart ">
  <code>supabase
    .channel(&#39;schema-db-changes&#39;)
    .onPostgresChanges(
        schema: &#39;public&#39;, // Subscribes to the &#34;public&#34; schema in Postgres
        event: PostgresChangeEvent.all, // Listen to all changes

        callback: (payload) =&gt; print(payload))
    .subscribe();</code>
  </pre>
  </div>


</div>






<div class="tab-pane fade" id="dfebca" role="tabpanel" aria-labelledby="nav-1">

	


  
  
  

  
  
  
  

  

  <div class="prism-codeblock ">
  <pre id="cff3f3e" class="language-kotlin ">
  <code>val myChannel = supabase.channel(&#34;schema-db-changes&#34;)

val changes = myChannel.postgresChangeFlow&lt;PostgresAction&gt;(schema = &#34;public&#34;)

changes
    .onEach {
        when(it) { //You can also check for &lt;is PostgresAction.Insert&gt;, etc.. manually
            is HasRecord -&gt; println(it.record)
            is HasOldRecord -&gt; println(it.oldRecord)
            else -&gt; println(it)
        }
    }
    .launchIn(yourCoroutineScope)

myChannel.subscribe()</code>
  </pre>
  </div>


</div>


</div>
<p>通道名称可以是除“realtime”之外的任何字符串。</p>
<h3 id="侦听-insert-事件">侦听 INSERT 事件 <a href="#%e4%be%a6%e5%90%ac-insert-%e4%ba%8b%e4%bb%b6" class="anchor" aria-hidden="true"><i class="material-icons align-middle">link</i></a></h3>
<nav>
	<div class="nav nav-tabs" id="nav-tab" role="tablist">

		
		
		
		

		

		<a class="nav-link  active"
		   id="ebacdfTab" data-bs-toggle="tab" data-bs-target="#ebacdf"
		   type="button" role="tab" aria-controls="ebacdf" aria-selected="true">JavaScript</a>

		

		<a class="nav-link "
		   id="daefcbTab" data-bs-toggle="tab" data-bs-target="#daefcb"
		   type="button" role="tab" aria-controls="daefcb" aria-selected="true">Dart</a>

		

		<a class="nav-link "
		   id="ecdbfaTab" data-bs-toggle="tab" data-bs-target="#ecdbfa"
		   type="button" role="tab" aria-controls="ecdbfa" aria-selected="true">Kotlin</a>

		

	</div>
</nav>

<div class="tab-content" id="nav-tab-content">

	






<div class="tab-pane fade show active" id="ebacdf" role="tabpanel" aria-labelledby="nav-1">

	<p>使用 event 参数仅侦听数据库 INSERT：</p>



  
  
  

  
  
  
  

  

  <div class="prism-codeblock ">
  <pre id="3684c4d" class="language-js ">
  <code>const changes = client
  .channel(&#39;schema-db-changes&#39;)
  .on(
    &#39;postgres_changes&#39;,
    {
      event: &#39;INSERT&#39;, // Listen only to INSERTs
      schema: &#39;public&#39;,
    },
    (payload) =&gt; console.log(payload)
  )
  .subscribe()</code>
  </pre>
  </div>


</div>






<div class="tab-pane fade" id="daefcb" role="tabpanel" aria-labelledby="nav-1">

	


  
  
  

  
  
  
  

  

  <div class="prism-codeblock ">
  <pre id="9e29e38" class="language-dart ">
  <code>final changes = supabase
    .channel(&#39;schema-db-changes&#39;)
    .onPostgresChanges(
        event: PostgresChangeEvent.insert,
        schema: &#39;public&#39;,
        callback: (payload) =&gt; print(payload))
    .subscribe();</code>
  </pre>
  </div>


</div>






<div class="tab-pane fade" id="ecdbfa" role="tabpanel" aria-labelledby="nav-1">

	<p>使用 PostgresAction.Insert 作为类型以仅侦听数据库 INSERT：</p>



  
  
  

  
  
  
  

  

  <div class="prism-codeblock ">
  <pre id="92edb05" class="language-kotlin ">
  <code>val myChannel = supabase.channel(&#34;db-changes&#34;)

val changes = myChannel.postgresChangeFlow&lt;PostgresAction.Insert&gt;(schema = &#34;public&#34;)

changes
    .onEach {
        println(it.record)
    }
    .launchIn(yourCoroutineScope)

myChannel.subscribe()</code>
  </pre>
  </div>


</div>


</div>
<p>通道名称可以是除“realtime”之外的任何字符串。</p>
<h3 id="侦听-update-事件">侦听 UPDATE 事件 <a href="#%e4%be%a6%e5%90%ac-update-%e4%ba%8b%e4%bb%b6" class="anchor" aria-hidden="true"><i class="material-icons align-middle">link</i></a></h3>
<nav>
	<div class="nav nav-tabs" id="nav-tab" role="tablist">

		
		
		
		

		

		<a class="nav-link  active"
		   id="bfaecdTab" data-bs-toggle="tab" data-bs-target="#bfaecd"
		   type="button" role="tab" aria-controls="bfaecd" aria-selected="true">JavaScript</a>

		

		<a class="nav-link "
		   id="cedabfTab" data-bs-toggle="tab" data-bs-target="#cedabf"
		   type="button" role="tab" aria-controls="cedabf" aria-selected="true">Dart</a>

		

		<a class="nav-link "
		   id="abedcfTab" data-bs-toggle="tab" data-bs-target="#abedcf"
		   type="button" role="tab" aria-controls="abedcf" aria-selected="true">Kotlin</a>

		

	</div>
</nav>

<div class="tab-content" id="nav-tab-content">

	






<div class="tab-pane fade show active" id="bfaecd" role="tabpanel" aria-labelledby="nav-1">

	<p>使用 event 参数仅侦听数据库 UPDATE：</p>



  
  
  

  
  
  
  

  

  <div class="prism-codeblock ">
  <pre id="6962110" class="language-js ">
  <code>const changes = client
  .channel(&#39;schema-db-changes&#39;)
  .on(
    &#39;postgres_changes&#39;,
    {
      event: &#39;UPDATE&#39;, // Listen only to UPDATEs
      schema: &#39;public&#39;,
    },
    (payload) =&gt; console.log(payload)
  )
  .subscribe()</code>
  </pre>
  </div>


</div>






<div class="tab-pane fade" id="cedabf" role="tabpanel" aria-labelledby="nav-1">

	


  
  
  

  
  
  
  

  

  <div class="prism-codeblock ">
  <pre id="360ae5e" class="language-dart ">
  <code>supabase
    .channel(&#39;schema-db-changes&#39;)
    .onPostgresChanges(
        event: PostgresChangeEvent.update, // Listen only to UPDATEs
        schema: &#39;public&#39;,
        callback: (payload) =&gt; print(payload))
    .subscribe();</code>
  </pre>
  </div>


</div>






<div class="tab-pane fade" id="abedcf" role="tabpanel" aria-labelledby="nav-1">

	<p>使用 PostgresAction.Update 作为类型以仅侦听数据库 UPDATE：</p>



  
  
  

  
  
  
  

  

  <div class="prism-codeblock ">
  <pre id="7ce7141" class="language-kotlin ">
  <code>val myChannel = supabase.channel(&#34;db-changes&#34;)

val changes = myChannel.postgresChangeFlow&lt;PostgresAction.Update&gt;(schema = &#34;public&#34;)

changes
    .onEach {
        println(it.record)
    }
    .launchIn(yourCoroutineScope)

myChannel.subscribe()</code>
  </pre>
  </div>


</div>


</div>
<p>通道名称可以是除“realtime”之外的任何字符串。</p>
<h3 id="侦听-delete-事件">侦听 DELETE 事件 <a href="#%e4%be%a6%e5%90%ac-delete-%e4%ba%8b%e4%bb%b6" class="anchor" aria-hidden="true"><i class="material-icons align-middle">link</i></a></h3>
<nav>
	<div class="nav nav-tabs" id="nav-tab" role="tablist">

		
		
		
		

		

		<a class="nav-link  active"
		   id="ecbdafTab" data-bs-toggle="tab" data-bs-target="#ecbdaf"
		   type="button" role="tab" aria-controls="ecbdaf" aria-selected="true">JavaScript</a>

		

		<a class="nav-link "
		   id="eafdcbTab" data-bs-toggle="tab" data-bs-target="#eafdcb"
		   type="button" role="tab" aria-controls="eafdcb" aria-selected="true">Dart</a>

		

		<a class="nav-link "
		   id="aedcfbTab" data-bs-toggle="tab" data-bs-target="#aedcfb"
		   type="button" role="tab" aria-controls="aedcfb" aria-selected="true">Kotlin</a>

		

	</div>
</nav>

<div class="tab-content" id="nav-tab-content">

	






<div class="tab-pane fade show active" id="ecbdaf" role="tabpanel" aria-labelledby="nav-1">

	<p>使用 event 参数仅侦听数据库 DELETE：</p>



  
  
  

  
  
  
  

  

  <div class="prism-codeblock ">
  <pre id="d366848" class="language-js ">
  <code>const changes = client
  .channel(&#39;schema-db-changes&#39;)
  .on(
    &#39;postgres_changes&#39;,
    {
      event: &#39;DELETE&#39;, // Listen only to DELETEs
      schema: &#39;public&#39;,
    },
    (payload) =&gt; console.log(payload)
  )
  .subscribe()</code>
  </pre>
  </div>


</div>






<div class="tab-pane fade" id="eafdcb" role="tabpanel" aria-labelledby="nav-1">

	


  
  
  

  
  
  
  

  

  <div class="prism-codeblock ">
  <pre id="19673a0" class="language-dart ">
  <code>supabase
    .channel(&#39;schema-db-changes&#39;)
    .onPostgresChanges(
        event: PostgresChangeEvent.delete, // Listen only to DELETEs
        schema: &#39;public&#39;,
        callback: (payload) =&gt; print(payload))
    .subscribe();</code>
  </pre>
  </div>


</div>






<div class="tab-pane fade" id="aedcfb" role="tabpanel" aria-labelledby="nav-1">

	<p>使用 PostgresAction.Delete 作为类型以仅侦听数据库 DELETE：</p>



  
  
  

  
  
  
  

  

  <div class="prism-codeblock ">
  <pre id="15ccc59" class="language-kotlin ">
  <code>val myChannel = supabase.channel(&#34;db-changes&#34;)

val changes = myChannel.postgresChangeFlow&lt;PostgresAction.Delete&gt;(schema = &#34;public&#34;)

changes
    .onEach {
        println(it.oldRecord)
    }
    .launchIn(yourCoroutineScope)

myChannel.subscribe()</code>
  </pre>
  </div>


</div>


</div>
<p>通道名称可以是除“realtime”之外的任何字符串。</p>
<h3 id="监听特定表">监听特定表 <a href="#%e7%9b%91%e5%90%ac%e7%89%b9%e5%ae%9a%e8%a1%a8" class="anchor" aria-hidden="true"><i class="material-icons align-middle">link</i></a></h3><p>使用 table 参数订阅特定表事件：</p>

<nav>
	<div class="nav nav-tabs" id="nav-tab" role="tablist">

		
		
		
		

		

		<a class="nav-link  active"
		   id="efcabdTab" data-bs-toggle="tab" data-bs-target="#efcabd"
		   type="button" role="tab" aria-controls="efcabd" aria-selected="true">JavaScript</a>

		

		<a class="nav-link "
		   id="dfcbeaTab" data-bs-toggle="tab" data-bs-target="#dfcbea"
		   type="button" role="tab" aria-controls="dfcbea" aria-selected="true">Dart</a>

		

		<a class="nav-link "
		   id="beacdfTab" data-bs-toggle="tab" data-bs-target="#beacdf"
		   type="button" role="tab" aria-controls="beacdf" aria-selected="true">Kotlin</a>

		

	</div>
</nav>

<div class="tab-content" id="nav-tab-content">

	






<div class="tab-pane fade show active" id="efcabd" role="tabpanel" aria-labelledby="nav-1">

	


  
  
  

  
  
  
  

  

  <div class="prism-codeblock ">
  <pre id="8311165" class="language-js ">
  <code>const changes = client
  .channel(&#39;table-db-changes&#39;)
  .on(
    &#39;postgres_changes&#39;,
    {
      event: &#39;*&#39;,
      schema: &#39;public&#39;,
      table: &#39;todos&#39;,
    },
    (payload) =&gt; console.log(payload)
  )
  .subscribe()</code>
  </pre>
  </div>


</div>






<div class="tab-pane fade" id="dfcbea" role="tabpanel" aria-labelledby="nav-1">

	


  
  
  

  
  
  
  

  

  <div class="prism-codeblock ">
  <pre id="b5490e7" class="language-dart ">
  <code>supabase
    .channel(&#39;table-db-changes&#39;)
    .onPostgresChanges(
        event: PostgresChangeEvent.all,
        schema: &#39;public&#39;,
        table: &#39;todos&#39;,
        callback: (payload) =&gt; print(payload))
    .subscribe();</code>
  </pre>
  </div>


</div>






<div class="tab-pane fade" id="beacdf" role="tabpanel" aria-labelledby="nav-1">

	


  
  
  

  
  
  
  

  

  <div class="prism-codeblock ">
  <pre id="9d94224" class="language-kotlin ">
  <code>val myChannel = supabase.channel(&#34;db-changes&#34;)

val changes = myChannel.postgresChangeFlow&lt;PostgresAction&gt;(schema = &#34;public&#34;) {
    table = &#34;todos&#34;
}

changes
    .onEach {
        println(it.record)
    }
    .launchIn(yourCoroutineScope)

myChannel.subscribe()</code>
  </pre>
  </div>


</div>


</div>
<p>通道名称可以是除“realtime”之外的任何字符串。</p>
<h3 id="监听多个更改">监听多个更改 <a href="#%e7%9b%91%e5%90%ac%e5%a4%9a%e4%b8%aa%e6%9b%b4%e6%94%b9" class="anchor" aria-hidden="true"><i class="material-icons align-middle">link</i></a></h3><p>要侦听同一频道的不同事件和架构/表/筛选器组合，请执行以下操作：</p>

<nav>
	<div class="nav nav-tabs" id="nav-tab" role="tablist">

		
		
		
		

		

		<a class="nav-link  active"
		   id="dcfaebTab" data-bs-toggle="tab" data-bs-target="#dcfaeb"
		   type="button" role="tab" aria-controls="dcfaeb" aria-selected="true">JavaScript</a>

		

		<a class="nav-link "
		   id="cbeadfTab" data-bs-toggle="tab" data-bs-target="#cbeadf"
		   type="button" role="tab" aria-controls="cbeadf" aria-selected="true">Dart</a>

		

		<a class="nav-link "
		   id="bcafdeTab" data-bs-toggle="tab" data-bs-target="#bcafde"
		   type="button" role="tab" aria-controls="bcafde" aria-selected="true">Kotlin</a>

		

	</div>
</nav>

<div class="tab-content" id="nav-tab-content">

	






<div class="tab-pane fade show active" id="dcfaeb" role="tabpanel" aria-labelledby="nav-1">

	


  
  
  

  
  
  
  

  

  <div class="prism-codeblock ">
  <pre id="19a3e61" class="language-js ">
  <code>const channel = supabase
  .channel(&#39;db-changes&#39;)
  .on(
    &#39;postgres_changes&#39;,
    {
      event: &#39;*&#39;,
      schema: &#39;public&#39;,
      table: &#39;messages&#39;,
    },
    (payload) =&gt; console.log(payload)
  )
  .on(
    &#39;postgres_changes&#39;,
    {
      event: &#39;INSERT&#39;,
      schema: &#39;public&#39;,
      table: &#39;users&#39;,
    },
    (payload) =&gt; console.log(payload)
  )
  .subscribe()</code>
  </pre>
  </div>


</div>






<div class="tab-pane fade" id="cbeadf" role="tabpanel" aria-labelledby="nav-1">

	


  
  
  

  
  
  
  

  

  <div class="prism-codeblock ">
  <pre id="cd906cf" class="language-dart ">
  <code>supabase
    .channel(&#39;db-changes&#39;)
    .onPostgresChanges(
        event: PostgresChangeEvent.all,
        schema: &#39;public&#39;,
        table: &#39;messages&#39;,
        callback: (payload) =&gt; print(payload))
    .onPostgresChanges(
        event: PostgresChangeEvent.insert,
        schema: &#39;public&#39;,
        table: &#39;users&#39;,
        callback: (payload) =&gt; print(payload))
    .subscribe();</code>
  </pre>
  </div>


</div>






<div class="tab-pane fade" id="bcafde" role="tabpanel" aria-labelledby="nav-1">

	


  
  
  

  
  
  
  

  

  <div class="prism-codeblock ">
  <pre id="addf0c5" class="language-kotlin ">
  <code>val myChannel = supabase.channel(&#34;db-changes&#34;)
val messageChanges = myChannel.postgresChangeFlow&lt;PostgresAction&gt;(schema = &#34;public&#34;) {
    table = &#34;messages&#34;
}
val userChanges = myChannel.postgresChangeFlow&lt;PostgresAction.Insert&gt;(schema = &#34;public&#34;) {
    table = &#34;users&#34;
}
myChannel.subscribe()</code>
  </pre>
  </div>


</div>


</div>
<h3 id="筛选特定更改">筛选特定更改 <a href="#%e7%ad%9b%e9%80%89%e7%89%b9%e5%ae%9a%e6%9b%b4%e6%94%b9" class="anchor" aria-hidden="true"><i class="material-icons align-middle">link</i></a></h3><p>使用 <code>filter</code> 参数进行精细更改：</p>

<nav>
	<div class="nav nav-tabs" id="nav-tab" role="tablist">

		
		
		
		

		

		<a class="nav-link  active"
		   id="abfdceTab" data-bs-toggle="tab" data-bs-target="#abfdce"
		   type="button" role="tab" aria-controls="abfdce" aria-selected="true">JavaScript</a>

		

		<a class="nav-link "
		   id="cdefbaTab" data-bs-toggle="tab" data-bs-target="#cdefba"
		   type="button" role="tab" aria-controls="cdefba" aria-selected="true">Dart</a>

		

		<a class="nav-link "
		   id="efacbdTab" data-bs-toggle="tab" data-bs-target="#efacbd"
		   type="button" role="tab" aria-controls="efacbd" aria-selected="true">Kotlin</a>

		

	</div>
</nav>

<div class="tab-content" id="nav-tab-content">

	






<div class="tab-pane fade show active" id="abfdce" role="tabpanel" aria-labelledby="nav-1">

	


  
  
  

  
  
  
  

  

  <div class="prism-codeblock ">
  <pre id="bc8fb7b" class="language-js ">
  <code>const changes = client
  .channel(&#39;table-filter-changes&#39;)
  .on(
    &#39;postgres_changes&#39;,
    {
      event: &#39;INSERT&#39;,
      schema: &#39;public&#39;,
      table: &#39;todos&#39;,
      filter: &#39;id=eq.1&#39;,
    },
    (payload) =&gt; console.log(payload)
  )
  .subscribe()</code>
  </pre>
  </div>


</div>






<div class="tab-pane fade" id="cdefba" role="tabpanel" aria-labelledby="nav-1">

	


  
  
  

  
  
  
  

  

  <div class="prism-codeblock ">
  <pre id="e95af8b" class="language-dart ">
  <code>  supabase
      .channel(&#39;table-filter-changes&#39;)
      .onPostgresChanges(
          event: PostgresChangeEvent.insert,
          schema: &#39;public&#39;,
          table: &#39;todos&#39;,
          filter: PostgresChangeFilter(
            type: PostgresChangeFilterType.eq,
            column: &#39;id&#39;,
            value: 1,
          ),
          callback: (payload) =&gt; print(payload))
      .subscribe();</code>
  </pre>
  </div>


</div>






<div class="tab-pane fade" id="efacbd" role="tabpanel" aria-labelledby="nav-1">

	


  
  
  

  
  
  
  

  

  <div class="prism-codeblock ">
  <pre id="48693d0" class="language-kotlin ">
  <code>val myChannel = supabase.channel(&#34;db-changes&#34;)

val changes = myChannel.postgresChangeFlow&lt;PostgresAction.Insert&gt;(schema = &#34;public&#34;) {
    table = &#34;todos&#34;
    filter = &#34;id=eq.1&#34;
}

changes
    .onEach {
        println(it.record)
    }
    .launchIn(yourCoroutineScope)

myChannel.subscribe()</code>
  </pre>
  </div>


</div>


</div>
<h2 id="可用的过滤器">可用的过滤器 <a href="#%e5%8f%af%e7%94%a8%e7%9a%84%e8%bf%87%e6%bb%a4%e5%99%a8" class="anchor" aria-hidden="true"><i class="material-icons align-middle">link</i></a></h2><p>Realtime 提供过滤器，因此您可以更精细地指定客户端接收的数据。</p>
<h3 id="等于-eq">等于 （eq） <a href="#%e7%ad%89%e4%ba%8e-eq" class="anchor" aria-hidden="true"><i class="material-icons align-middle">link</i></a></h3><p>当表中的列值等于客户端指定的值时侦听更改，请执行以下操作：</p>

<nav>
	<div class="nav nav-tabs" id="nav-tab" role="tablist">

		
		
		
		

		

		<a class="nav-link  active"
		   id="bcfadeTab" data-bs-toggle="tab" data-bs-target="#bcfade"
		   type="button" role="tab" aria-controls="bcfade" aria-selected="true">JavaScript</a>

		

		<a class="nav-link "
		   id="adcbefTab" data-bs-toggle="tab" data-bs-target="#adcbef"
		   type="button" role="tab" aria-controls="adcbef" aria-selected="true">Dart</a>

		

		<a class="nav-link "
		   id="ebcafdTab" data-bs-toggle="tab" data-bs-target="#ebcafd"
		   type="button" role="tab" aria-controls="ebcafd" aria-selected="true">Kotlin</a>

		

	</div>
</nav>

<div class="tab-content" id="nav-tab-content">

	






<div class="tab-pane fade show active" id="bcfade" role="tabpanel" aria-labelledby="nav-1">

	


  
  
  

  
  
  
  

  

  <div class="prism-codeblock ">
  <pre id="2ae18b0" class="language-js ">
  <code>const channel = supabase
  .channel(&#39;changes&#39;)
  .on(
    &#39;postgres_changes&#39;,
    {
      event: &#39;UPDATE&#39;,
      schema: &#39;public&#39;,
      table: &#39;messages&#39;,
      filter: &#39;body=eq.hey&#39;,
    },
    (payload) =&gt; console.log(payload)
  )
  .subscribe()</code>
  </pre>
  </div>


</div>






<div class="tab-pane fade" id="adcbef" role="tabpanel" aria-labelledby="nav-1">

	


  
  
  

  
  
  
  

  

  <div class="prism-codeblock ">
  <pre id="866f28c" class="language-dart ">
  <code>supabase
    .channel(&#39;changes&#39;)
    .onPostgresChanges(
        event: PostgresChangeEvent.update,
        schema: &#39;public&#39;,
        table: &#39;messages&#39;,
        filter: PostgresChangeFilter(
          type: PostgresChangeFilterType.eq,
          column: &#39;body&#39;,
          value: &#39;hey&#39;,
        ),
        callback: (payload) =&gt; print(payload))
    .subscribe();</code>
  </pre>
  </div>


</div>






<div class="tab-pane fade" id="ebcafd" role="tabpanel" aria-labelledby="nav-1">

	


  
  
  

  
  
  
  

  

  <div class="prism-codeblock ">
  <pre id="fcb12e1" class="language-kotlin ">
  <code>val myChannel = supabase.channel(&#34;db-changes&#34;)

val changes = myChannel.postgresChangeFlow&lt;PostgresAction.Update&gt;(schema = &#34;public&#34;) {
    table = &#34;messages&#34;
    filter = &#34;body=eq.hey&#34;
}

changes
    .onEach {
        println(it.record)
    }
    .launchIn(yourCoroutineScope)

myChannel.subscribe()</code>
  </pre>
  </div>


</div>


</div>
<p>此过滤器使用 Postgres 的 = 过滤器。</p>
<h3 id="不等于-neq">不等于 （neq） <a href="#%e4%b8%8d%e7%ad%89%e4%ba%8e-neq" class="anchor" aria-hidden="true"><i class="material-icons align-middle">link</i></a></h3><p>当表中的列值不等于客户端指定的值时侦听更改，请执行以下操作：</p>

<nav>
	<div class="nav nav-tabs" id="nav-tab" role="tablist">

		
		
		
		

		

		<a class="nav-link  active"
		   id="debafcTab" data-bs-toggle="tab" data-bs-target="#debafc"
		   type="button" role="tab" aria-controls="debafc" aria-selected="true">JavaScript</a>

		

		<a class="nav-link "
		   id="bfcadeTab" data-bs-toggle="tab" data-bs-target="#bfcade"
		   type="button" role="tab" aria-controls="bfcade" aria-selected="true">Dart</a>

		

		<a class="nav-link "
		   id="fcdebaTab" data-bs-toggle="tab" data-bs-target="#fcdeba"
		   type="button" role="tab" aria-controls="fcdeba" aria-selected="true">Kotlin</a>

		

	</div>
</nav>

<div class="tab-content" id="nav-tab-content">

	






<div class="tab-pane fade show active" id="debafc" role="tabpanel" aria-labelledby="nav-1">

	


  
  
  

  
  
  
  

  

  <div class="prism-codeblock ">
  <pre id="5426bb3" class="language-js ">
  <code>const channel = supabase
  .channel(&#39;changes&#39;)
  .on(
    &#39;postgres_changes&#39;,
    {
      event: &#39;INSERT&#39;,
      schema: &#39;public&#39;,
      table: &#39;messages&#39;,
      filter: &#39;body=neq.bye&#39;,
    },
    (payload) =&gt; console.log(payload)
  )
  .subscribe()</code>
  </pre>
  </div>


</div>






<div class="tab-pane fade" id="bfcade" role="tabpanel" aria-labelledby="nav-1">

	


  
  
  

  
  
  
  

  

  <div class="prism-codeblock ">
  <pre id="7405312" class="language-dart ">
  <code>supabase
    .channel(&#39;changes&#39;)
    .onPostgresChanges(
        event: PostgresChangeEvent.insert,
        schema: &#39;public&#39;,
        table: &#39;messages&#39;,
        filter: PostgresChangeFilter(
          type: PostgresChangeFilterType.neq,
          column: &#39;body&#39;,
          value: &#39;bye&#39;,
        ),
        callback: (payload) =&gt; print(payload))
    .subscribe();</code>
  </pre>
  </div>


</div>






<div class="tab-pane fade" id="fcdeba" role="tabpanel" aria-labelledby="nav-1">

	


  
  
  

  
  
  
  

  

  <div class="prism-codeblock ">
  <pre id="f18877c" class="language-kotlin ">
  <code>val myChannel = supabase.realtime.createChannel(&#34;db-changes&#34;)

val changes = myChannel.postgresChangeFlow&lt;PostgresAction.Update&gt;(schema = &#34;public&#34;) {
    table = &#34;messages&#34;
    filter = &#34;body=neq.bye&#34;
}

changes
    .onEach {
        println(it.record)
    }
    .launchIn(yourCoroutineScope)

supabase.realtime.connect()
myChannel.join()</code>
  </pre>
  </div>


</div>


</div>
<p>此筛选器使用 Postgres 的 ！= 筛选器。</p>
<h3 id="小于-lt">小于 （lt） <a href="#%e5%b0%8f%e4%ba%8e-lt" class="anchor" aria-hidden="true"><i class="material-icons align-middle">link</i></a></h3><p>当表中的列值小于客户端指定的值时侦听更改：</p>

<nav>
	<div class="nav nav-tabs" id="nav-tab" role="tablist">

		
		
		
		

		

		<a class="nav-link  active"
		   id="fecadbTab" data-bs-toggle="tab" data-bs-target="#fecadb"
		   type="button" role="tab" aria-controls="fecadb" aria-selected="true">JavaScript</a>

		

		<a class="nav-link "
		   id="fbacedTab" data-bs-toggle="tab" data-bs-target="#fbaced"
		   type="button" role="tab" aria-controls="fbaced" aria-selected="true">Dart</a>

		

		<a class="nav-link "
		   id="cafedbTab" data-bs-toggle="tab" data-bs-target="#cafedb"
		   type="button" role="tab" aria-controls="cafedb" aria-selected="true">Kotlin</a>

		

	</div>
</nav>

<div class="tab-content" id="nav-tab-content">

	






<div class="tab-pane fade show active" id="fecadb" role="tabpanel" aria-labelledby="nav-1">

	


  
  
  

  
  
  
  

  

  <div class="prism-codeblock ">
  <pre id="b2c9f4b" class="language-js ">
  <code>const channel = supabase
  .channel(&#39;changes&#39;)
  .on(
    &#39;postgres_changes&#39;,
    {
      event: &#39;INSERT&#39;,
      schema: &#39;public&#39;,
      table: &#39;profiles&#39;,
      filter: &#39;age=lt.65&#39;,
    },
    (payload) =&gt; console.log(payload)
  )
  .subscribe()</code>
  </pre>
  </div>


</div>






<div class="tab-pane fade" id="fbaced" role="tabpanel" aria-labelledby="nav-1">

	


  
  
  

  
  
  
  

  

  <div class="prism-codeblock ">
  <pre id="bedf151" class="language-dart ">
  <code>supabase
    .channel(&#39;changes&#39;)
    .onPostgresChanges(
        event: PostgresChangeEvent.insert,
        schema: &#39;public&#39;,
        table: &#39;profiles&#39;,
        filter: PostgresChangeFilter(
          type: PostgresChangeFilterType.lt,
          column: &#39;age&#39;,
          value: 65,
        ),
        callback: (payload) =&gt; print(payload))
    .subscribe();</code>
  </pre>
  </div>


</div>






<div class="tab-pane fade" id="cafedb" role="tabpanel" aria-labelledby="nav-1">

	


  
  
  

  
  
  
  

  

  <div class="prism-codeblock ">
  <pre id="97fc01c" class="language-kotlin ">
  <code>val myChannel = supabase.channel(&#34;db-changes&#34;)

val changes = myChannel.postgresChangeFlow&lt;PostgresAction.Insert&gt;(schema = &#34;public&#34;) {
    table = &#34;profiles&#34;
    filter = &#34;age=lt.65&#34;
}

changes
    .onEach {
        println(it.record)
    }
    .launchIn(yourCoroutineScope)

myChannel.subscribe()</code>
  </pre>
  </div>


</div>


</div>
<p>此筛选器使用 Postgres 的&lt;筛选器，因此它适用于非数值类型。请务必检查比较数据类型的预期行为。</p>
<h3 id="小于或等于-lte">小于或等于 （lte） <a href="#%e5%b0%8f%e4%ba%8e%e6%88%96%e7%ad%89%e4%ba%8e-lte" class="anchor" aria-hidden="true"><i class="material-icons align-middle">link</i></a></h3><p>当表中的列值小于或等于客户端指定的值时侦听更改：</p>

<nav>
	<div class="nav nav-tabs" id="nav-tab" role="tablist">

		
		
		
		

		

		<a class="nav-link  active"
		   id="cbdafeTab" data-bs-toggle="tab" data-bs-target="#cbdafe"
		   type="button" role="tab" aria-controls="cbdafe" aria-selected="true">JavaScript</a>

		

		<a class="nav-link "
		   id="efcdbaTab" data-bs-toggle="tab" data-bs-target="#efcdba"
		   type="button" role="tab" aria-controls="efcdba" aria-selected="true">Dart</a>

		

		<a class="nav-link "
		   id="bcaefdTab" data-bs-toggle="tab" data-bs-target="#bcaefd"
		   type="button" role="tab" aria-controls="bcaefd" aria-selected="true">Kotlin</a>

		

	</div>
</nav>

<div class="tab-content" id="nav-tab-content">

	






<div class="tab-pane fade show active" id="cbdafe" role="tabpanel" aria-labelledby="nav-1">

	


  
  
  

  
  
  
  

  

  <div class="prism-codeblock ">
  <pre id="adb8fec" class="language-js ">
  <code>const channel = supabase
  .channel(&#39;changes&#39;)
  .on(
    &#39;postgres_changes&#39;,
    {
      event: &#39;UPDATE&#39;,
      schema: &#39;public&#39;,
      table: &#39;profiles&#39;,
      filter: &#39;age=lte.65&#39;,
    },
    (payload) =&gt; console.log(payload)
  )
  .subscribe()</code>
  </pre>
  </div>


</div>






<div class="tab-pane fade" id="efcdba" role="tabpanel" aria-labelledby="nav-1">

	


  
  
  

  
  
  
  

  

  <div class="prism-codeblock ">
  <pre id="8c88ad2" class="language-dart ">
  <code>supabase
    .channel(&#39;changes&#39;)
    .onPostgresChanges(
        event: PostgresChangeEvent.insert,
        schema: &#39;public&#39;,
        table: &#39;profiles&#39;,
        filter: PostgresChangeFilter(
          type: PostgresChangeFilterType.lte,
          column: &#39;age&#39;,
          value: 65,
        ),
        callback: (payload) =&gt; print(payload))
    .subscribe();</code>
  </pre>
  </div>


</div>






<div class="tab-pane fade" id="bcaefd" role="tabpanel" aria-labelledby="nav-1">

	


  
  
  

  
  
  
  

  

  <div class="prism-codeblock ">
  <pre id="ca2c9eb" class="language-kotlin ">
  <code>val myChannel = supabase.channel(&#34;db-changes&#34;)

val changes = myChannel.postgresChangeFlow&lt;PostgresAction.Update&gt;(schema = &#34;public&#34;) {
    table = &#34;profiles&#34;
    filter = &#34;age=lte.65&#34;
}

changes
    .onEach {
        println(it.record)
    }
    .launchIn(yourCoroutineScope)

myChannel.subscribe()</code>
  </pre>
  </div>


</div>


</div>
<p>此筛选器使用 Postgres 的 &lt;= 筛选器，因此它适用于非数值类型。请务必检查比较数据类型的预期行为。</p>
<h3 id="大于-gt">大于 （gt） <a href="#%e5%a4%a7%e4%ba%8e-gt" class="anchor" aria-hidden="true"><i class="material-icons align-middle">link</i></a></h3><p>当表中的列值大于客户端指定的值时侦听更改：</p>

<nav>
	<div class="nav nav-tabs" id="nav-tab" role="tablist">

		
		
		
		

		

		<a class="nav-link  active"
		   id="dfbecaTab" data-bs-toggle="tab" data-bs-target="#dfbeca"
		   type="button" role="tab" aria-controls="dfbeca" aria-selected="true">JavaScript</a>

		

		<a class="nav-link "
		   id="ecfbadTab" data-bs-toggle="tab" data-bs-target="#ecfbad"
		   type="button" role="tab" aria-controls="ecfbad" aria-selected="true">Dart</a>

		

		<a class="nav-link "
		   id="dbacfeTab" data-bs-toggle="tab" data-bs-target="#dbacfe"
		   type="button" role="tab" aria-controls="dbacfe" aria-selected="true">Kotlin</a>

		

	</div>
</nav>

<div class="tab-content" id="nav-tab-content">

	






<div class="tab-pane fade show active" id="dfbeca" role="tabpanel" aria-labelledby="nav-1">

	


  
  
  

  
  
  
  

  

  <div class="prism-codeblock ">
  <pre id="b3923bd" class="language-js ">
  <code>const channel = supabase
  .channel(&#39;changes&#39;)
  .on(
    &#39;postgres_changes&#39;,
    {
      event: &#39;INSERT&#39;,
      schema: &#39;public&#39;,
      table: &#39;products&#39;,
      filter: &#39;quantity=gt.10&#39;,
    },
    (payload) =&gt; console.log(payload)
  )
  .subscribe()</code>
  </pre>
  </div>


</div>






<div class="tab-pane fade" id="ecfbad" role="tabpanel" aria-labelledby="nav-1">

	


  
  
  

  
  
  
  

  

  <div class="prism-codeblock ">
  <pre id="e656ed1" class="language-dart ">
  <code>supabase
    .channel(&#39;changes&#39;)
    .onPostgresChanges(
        event: PostgresChangeEvent.insert,
        schema: &#39;public&#39;,
        table: &#39;products&#39;,
        filter: PostgresChangeFilter(
          type: PostgresChangeFilterType.gt,
          column: &#39;quantity&#39;,
          value: 10,
        ),
        callback: (payload) =&gt; print(payload))
    .subscribe();</code>
  </pre>
  </div>


</div>






<div class="tab-pane fade" id="dbacfe" role="tabpanel" aria-labelledby="nav-1">

	


  
  
  

  
  
  
  

  

  <div class="prism-codeblock ">
  <pre id="c3caf9a" class="language-kotlin ">
  <code>val myChannel = supabase.channel(&#34;db-changes&#34;)

val changes = myChannel.postgresChangeFlow&lt;PostgresAction.Update&gt;(schema = &#34;public&#34;) {
    table = &#34;products&#34;
    filter = &#34;quantity=gt.10&#34;
}

changes
    .onEach {
        println(it.record)
    }
    .launchIn(yourCoroutineScope)

myChannel.subscribe()</code>
  </pre>
  </div>


</div>


</div>
<p>此筛选器使用 Postgres 的&gt;筛选器，因此它适用于非数字类型。请务必检查比较数据类型的预期行为。</p>
<h3 id="大于或等于-gte">大于或等于 （gte） <a href="#%e5%a4%a7%e4%ba%8e%e6%88%96%e7%ad%89%e4%ba%8e-gte" class="anchor" aria-hidden="true"><i class="material-icons align-middle">link</i></a></h3><p>当表中的列值大于或等于客户端指定的值时侦听更改：</p>

<nav>
	<div class="nav nav-tabs" id="nav-tab" role="tablist">

		
		
		
		

		

		<a class="nav-link  active"
		   id="abcdfeTab" data-bs-toggle="tab" data-bs-target="#abcdfe"
		   type="button" role="tab" aria-controls="abcdfe" aria-selected="true">JavaScript</a>

		

		<a class="nav-link "
		   id="dbacfeTab" data-bs-toggle="tab" data-bs-target="#dbacfe"
		   type="button" role="tab" aria-controls="dbacfe" aria-selected="true">Dart</a>

		

		<a class="nav-link "
		   id="fbdeacTab" data-bs-toggle="tab" data-bs-target="#fbdeac"
		   type="button" role="tab" aria-controls="fbdeac" aria-selected="true">Kotlin</a>

		

	</div>
</nav>

<div class="tab-content" id="nav-tab-content">

	






<div class="tab-pane fade show active" id="abcdfe" role="tabpanel" aria-labelledby="nav-1">

	


  
  
  

  
  
  
  

  

  <div class="prism-codeblock ">
  <pre id="7855909" class="language-js ">
  <code>const channel = supabase
  .channel(&#39;changes&#39;)
  .on(
    &#39;postgres_changes&#39;,
    {
      event: &#39;INSERT&#39;,
      schema: &#39;public&#39;,
      table: &#39;products&#39;,
      filter: &#39;quantity=gte.10&#39;,
    },
    (payload) =&gt; console.log(payload)
  )
  .subscribe()</code>
  </pre>
  </div>


</div>






<div class="tab-pane fade" id="dbacfe" role="tabpanel" aria-labelledby="nav-1">

	


  
  
  

  
  
  
  

  

  <div class="prism-codeblock ">
  <pre id="e542f97" class="language-dart ">
  <code>supabase
    .channel(&#39;changes&#39;)
    .onPostgresChanges(
        event: PostgresChangeEvent.insert,
        schema: &#39;public&#39;,
        table: &#39;products&#39;,
        filter: PostgresChangeFilter(
          type: PostgresChangeFilterType.gte,
          column: &#39;quantity&#39;,
          value: 10,
        ),
        callback: (payload) =&gt; print(payload))
    .subscribe();</code>
  </pre>
  </div>


</div>






<div class="tab-pane fade" id="fbdeac" role="tabpanel" aria-labelledby="nav-1">

	


  
  
  

  
  
  
  

  

  <div class="prism-codeblock ">
  <pre id="9a55864" class="language-kotlin ">
  <code>val myChannel = supabase.channel(&#34;db-changes&#34;)

val changes = myChannel.postgresChangeFlow&lt;PostgresAction.Update&gt;(schema = &#34;public&#34;) {
    table = &#34;products&#34;
    filter = &#34;quantity=gte.10&#34;
}

changes
    .onEach {
        println(it.record)
    }
    .launchIn(yourCoroutineScope)

myChannel.subscribe()</code>
  </pre>
  </div>


</div>


</div>
<p>此筛选器使用 Postgres 的 &gt;= 筛选器，因此它适用于非数值类型。请务必检查比较数据类型的预期行为。</p>
<h3 id="包含在清单中-in">包含在清单中 （in） <a href="#%e5%8c%85%e5%90%ab%e5%9c%a8%e6%b8%85%e5%8d%95%e4%b8%ad-in" class="anchor" aria-hidden="true"><i class="material-icons align-middle">link</i></a></h3><p>当表中的列值等于任何客户端指定的值时侦听更改：</p>

<nav>
	<div class="nav nav-tabs" id="nav-tab" role="tablist">

		
		
		
		

		

		<a class="nav-link  active"
		   id="bafcdeTab" data-bs-toggle="tab" data-bs-target="#bafcde"
		   type="button" role="tab" aria-controls="bafcde" aria-selected="true">JavaScript</a>

		

		<a class="nav-link "
		   id="badfecTab" data-bs-toggle="tab" data-bs-target="#badfec"
		   type="button" role="tab" aria-controls="badfec" aria-selected="true">Dart</a>

		

		<a class="nav-link "
		   id="debcafTab" data-bs-toggle="tab" data-bs-target="#debcaf"
		   type="button" role="tab" aria-controls="debcaf" aria-selected="true">Kotlin</a>

		

	</div>
</nav>

<div class="tab-content" id="nav-tab-content">

	






<div class="tab-pane fade show active" id="bafcde" role="tabpanel" aria-labelledby="nav-1">

	


  
  
  

  
  
  
  

  

  <div class="prism-codeblock ">
  <pre id="a286c76" class="language-js ">
  <code>const channel = supabase
  .channel(&#39;changes&#39;)
  .on(
    &#39;postgres_changes&#39;,
    {
      event: &#39;INSERT&#39;,
      schema: &#39;public&#39;,
      table: &#39;colors&#39;,
      filter: &#39;name=in.(red, blue, yellow)&#39;,
    },
    (payload) =&gt; console.log(payload)
  )
  .subscribe()</code>
  </pre>
  </div>


</div>






<div class="tab-pane fade" id="badfec" role="tabpanel" aria-labelledby="nav-1">

	


  
  
  

  
  
  
  

  

  <div class="prism-codeblock ">
  <pre id="692107a" class="language-dart ">
  <code>supabase
    .channel(&#39;changes&#39;)
    .onPostgresChanges(
        event: PostgresChangeEvent.insert,
        schema: &#39;public&#39;,
        table: &#39;colors&#39;,
        filter: PostgresChangeFilter(
          type: PostgresChangeFilterType.lte,
          column: &#39;name&#39;,
          value: [&#39;red&#39;, &#39;blue&#39;, &#39;yellow&#39;],
        ),
        callback: (payload) =&gt; print(payload))
    .subscribe();</code>
  </pre>
  </div>


</div>






<div class="tab-pane fade" id="debcaf" role="tabpanel" aria-labelledby="nav-1">

	


  
  
  

  
  
  
  

  

  <div class="prism-codeblock ">
  <pre id="41daa07" class="language-kotlin ">
  <code>val myChannel = supabase.channel(&#34;db-changes&#34;)

val changes = myChannel.postgresChangeFlow&lt;PostgresAction.Update&gt;(schema = &#34;public&#34;) {
    table = &#34;products&#34;
    filter = &#34;name=in.(red, blue, yellow)&#34;
}

changes
    .onEach {
        println(it.record)
    }
    .launchIn(yourCoroutineScope)

myChannel.subscribe()</code>
  </pre>
  </div>


</div>


</div>
<p>此筛选器使用 Postgres 的 = ANY。实时允许此筛选器最多 100 个值。</p>
<h2 id="接收旧-记录">接收<code>旧 </code>记录 <a href="#%e6%8e%a5%e6%94%b6%e6%97%a7-%e8%ae%b0%e5%bd%95" class="anchor" aria-hidden="true"><i class="material-icons align-middle">link</i></a></h2><p>默认情况下，仅发送新记录更改，但如果要在更新或删除记录时接收旧记录（以前的值），则可以将表的副本标识设置为完整：</p>



  
  
  

  
  
  
  

  

  <div class="prism-codeblock ">
  <pre id="4ca83c2" class="language-sql ">
  <code>alter table
  messages replica identity full;</code>
  </pre>
  </div>
<div class="alert alert-info d-flex" role="alert">
  <div class="flex-shrink-1 alert-icon">
  <span class="material-icons size-20 me-2">
  info
  </span></div>
  <div class="w-100">
<p>RLS 策略不适用于 DELETE 语句，因为 Postgres 无法验证用户是否有权访问已删除的记录。启用 RLS 并将表上的副本标识设置为完整时，旧记录仅包含主键。</p>
  </div>
  </div>
<h2 id="私有-schemas">私有 schemas <a href="#%e7%a7%81%e6%9c%89-schemas" class="anchor" aria-hidden="true"><i class="material-icons align-middle">link</i></a></h2><p>Postgres Changes 适用于公共架构中的表。您可以通过向访问令牌中找到的数据库角色授予表 SELECT 权限来侦听私有架构中的表。您可以运行类似于以下内容的查询：</p>



  
  
  

  
  
  
  

  

  <div class="prism-codeblock ">
  <pre id="2724d0c" class="language-sql ">
  <code>grant select on &#34;non_private_schema&#34;.&#34;some_table&#34; to authenticated;</code>
  </pre>
  </div>
<div class="alert alert-info d-flex" role="alert">
  <div class="flex-shrink-1 alert-icon">
  <span class="material-icons size-20 me-2">
  info
  </span></div>
  <div class="w-100">
<p>我们强烈建议您启用 RLS 并为私有架构中的表创建策略。否则，您授予访问权限的任何角色都将拥有对表的不受限制的读取访问权限。</p>
  </div>
  </div>
<h2 id="自定义令牌">自定义令牌 <a href="#%e8%87%aa%e5%ae%9a%e4%b9%89%e4%bb%a4%e7%89%8c" class="anchor" aria-hidden="true"><i class="material-icons align-middle">link</i></a></h2><p>可以选择对自己的令牌进行签名，以自定义可在 RLS 策略中检查的声明。</p>
<p>项目 JWT 密钥可在仪表板中找到，其中包含项目 API 密钥。</p>
<div class="alert alert-info d-flex" role="alert">
  <div class="flex-shrink-1 alert-icon">
  <span class="material-icons size-20 me-2">
  info
  </span></div>
  <div class="w-100">
<p>不要在客户端上公开 service_role 令牌，因为该角色有权绕过行级安全性。</p>
  </div>
  </div>
<p>要将您自己的 JWT 与 Realtime 一起使用，请确保在实例化 Supabase 客户端之后和连接到 Channel 之前设置令牌。</p>

<nav>
	<div class="nav nav-tabs" id="nav-tab" role="tablist">

		
		
		
		

		

		<a class="nav-link  active"
		   id="dbcfeaTab" data-bs-toggle="tab" data-bs-target="#dbcfea"
		   type="button" role="tab" aria-controls="dbcfea" aria-selected="true">JavaScript</a>

		

		<a class="nav-link "
		   id="bfdaceTab" data-bs-toggle="tab" data-bs-target="#bfdace"
		   type="button" role="tab" aria-controls="bfdace" aria-selected="true">Dart</a>

		

		<a class="nav-link "
		   id="dacebfTab" data-bs-toggle="tab" data-bs-target="#dacebf"
		   type="button" role="tab" aria-controls="dacebf" aria-selected="true">Kotlin</a>

		

	</div>
</nav>

<div class="tab-content" id="nav-tab-content">

	






<div class="tab-pane fade show active" id="dbcfea" role="tabpanel" aria-labelledby="nav-1">

	


  
  
  

  
  
  
  

  

  <div class="prism-codeblock ">
  <pre id="fa6c728" class="language-js ">
  <code>const { createClient } = require(&#39;@supabase/supabase-js&#39;)

const supabase = createClient(process.env.SUPABASE_URL, process.env.SUPABASE_KEY, {})

// Set your custom JWT here
supabase.realtime.setAuth(&#39;your-custom-jwt&#39;)

const channel = supabase
  .channel(&#39;db-changes&#39;)
  .on(
    &#39;postgres_changes&#39;,
    {
      event: &#39;*&#39;,
      schema: &#39;public&#39;,
      table: &#39;messages&#39;,
      filter: &#39;body=eq.bye&#39;,
    },
    (payload) =&gt; console.log(payload)
  )
  .subscribe()</code>
  </pre>
  </div>


</div>






<div class="tab-pane fade" id="bfdace" role="tabpanel" aria-labelledby="nav-1">

	


  
  
  

  
  
  
  

  

  <div class="prism-codeblock ">
  <pre id="73de1cd" class="language-dart ">
  <code>supabase.realtime.setAuth(&#39;your-custom-jwt&#39;);

supabase
    .channel(&#39;db-changes&#39;)
    .onPostgresChanges(
      event: PostgresChangeEvent.all,
      schema: &#39;public&#39;,
      table: &#39;messages&#39;,
      filter: PostgresChangeFilter(
        type: PostgresChangeFilterType.eq,
        column: &#39;body&#39;,
        value: &#39;bye&#39;,
      ),
      callback: (payload) =&gt; print(payload),
    )
    .subscribe();</code>
  </pre>
  </div>


</div>






<div class="tab-pane fade" id="dacebf" role="tabpanel" aria-labelledby="nav-1">

	


  
  
  

  
  
  
  

  

  <div class="prism-codeblock ">
  <pre id="995b96c" class="language-kotlin ">
  <code>val supabase = createSupabaseClient(supabaseUrl, supabaseKey) {
	install(Realtime) {
		jwtToken = &#34;your-custom-jwt&#34;
	}
}
val myChannel = supabase.channel(&#34;db-changes&#34;)

val changes = myChannel.postgresChangeFlow&lt;PostgresAction.Update&gt;(schema = &#34;public&#34;) {
    table = &#34;products&#34;
    filter = &#34;name=in.(red, blue, yellow)&#34;
}

changes
    .onEach {
        println(it.record)
    }
    .launchIn(yourCoroutineScope)

myChannel.subscribe()</code>
  </pre>
  </div>


</div>


</div>
<h3 id="刷新的令牌">刷新的令牌 <a href="#%e5%88%b7%e6%96%b0%e7%9a%84%e4%bb%a4%e7%89%8c" class="anchor" aria-hidden="true"><i class="material-icons align-middle">link</i></a></h3><p>您需要自行刷新令牌，但一旦生成，您可以将其传递给 Realtime。</p>

<nav>
	<div class="nav nav-tabs" id="nav-tab" role="tablist">

		
		
		
		

		

		<a class="nav-link  active"
		   id="bcafedTab" data-bs-toggle="tab" data-bs-target="#bcafed"
		   type="button" role="tab" aria-controls="bcafed" aria-selected="true">JavaScript</a>

		

		<a class="nav-link "
		   id="edbfcaTab" data-bs-toggle="tab" data-bs-target="#edbfca"
		   type="button" role="tab" aria-controls="edbfca" aria-selected="true">Dart</a>

		

		<a class="nav-link "
		   id="edbafcTab" data-bs-toggle="tab" data-bs-target="#edbafc"
		   type="button" role="tab" aria-controls="edbafc" aria-selected="true">Kotlin</a>

		

	</div>
</nav>

<div class="tab-content" id="nav-tab-content">

	






<div class="tab-pane fade show active" id="bcafed" role="tabpanel" aria-labelledby="nav-1">

	<p>例如，如果你使用的是 supabase-js v2 客户端，那么你可以像这样传递你的令牌：</p>



  
  
  

  
  
  
  

  

  <div class="prism-codeblock ">
  <pre id="fb6fb3f" class="language-js ">
  <code>// Client setup

supabase.realtime.setAuth(&#39;fresh-token&#39;)</code>
  </pre>
  </div>


</div>






<div class="tab-pane fade" id="edbfca" role="tabpanel" aria-labelledby="nav-1">

	


  
  
  

  
  
  
  

  

  <div class="prism-codeblock ">
  <pre id="4b2c772" class="language-dart ">
  <code>supabase.realtime.setAuth(&#39;fresh-token&#39;);</code>
  </pre>
  </div>


</div>






<div class="tab-pane fade" id="edbafc" role="tabpanel" aria-labelledby="nav-1">

	<p>In Kotlin, you have to update the token manually per channel:</p>



  
  
  

  
  
  
  

  

  <div class="prism-codeblock ">
  <pre id="df7c169" class="language-kotlin ">
  <code>myChannel.updateAuth(&#34;fresh-token&#34;)</code>
  </pre>
  </div>


</div>


</div>
<h2 id="局限性">局限性 <a href="#%e5%b1%80%e9%99%90%e6%80%a7" class="anchor" aria-hidden="true"><i class="material-icons align-middle">link</i></a></h2><h3 id="删除事件不可筛选">删除事件不可筛选 <a href="#%e5%88%a0%e9%99%a4%e4%ba%8b%e4%bb%b6%e4%b8%8d%e5%8f%af%e7%ad%9b%e9%80%89" class="anchor" aria-hidden="true"><i class="material-icons align-middle">link</i></a></h3><p>在跟踪 Postgres 更改时，您无法过滤删除事件。此限制是由于从 Postgres 中提取更改的方式所致。</p>
<h3 id="表名中的空格">表名中的空格 <a href="#%e8%a1%a8%e5%90%8d%e4%b8%ad%e7%9a%84%e7%a9%ba%e6%a0%bc" class="anchor" aria-hidden="true"><i class="material-icons align-middle">link</i></a></h3><p>当表名包含空格时，实时当前不起作用。</p>
<h3 id="数据库实例和实时性能">数据库实例和实时性能 <a href="#%e6%95%b0%e6%8d%ae%e5%ba%93%e5%ae%9e%e4%be%8b%e5%92%8c%e5%ae%9e%e6%97%b6%e6%80%a7%e8%83%bd" class="anchor" aria-hidden="true"><i class="material-icons align-middle">link</i></a></h3><p>实时系统通常需要深思熟虑，因为它们具有扩展动态。对于 Postgres 更改功能，必须检查每个更改事件，以查看订阅用户是否具有访问权限。例如，如果您有 100 个用户订阅了您进行单个插入的表，它将触发 100 次“读取”：每个用户一次。</p>
<p>可能存在限制消息吞吐量的数据库瓶颈。如果数据库无法足够快地授权更改，则更改将延迟，直到您收到超时。</p>
<p>数据库更改在单个线程上处理，以维护变更单。这意味着计算升级不会对 Postgres 更改订阅的性能产生很大影响。您可以在下面估算数据库的预期最大吞吐量。</p>
<p>如果大规模使用 Postgres 更改，则应考虑使用单独的“公共”表，而不使用 RLS 和过滤器。或者，您可以仅使用实时服务器端，然后使用实时广播将更改重新流式传输到客户端。</p>
<p>输入您的数据库设置以估计实例的最大吞吐量：</p>
<RealtimeLimitsEstimator />
<p>不要忘记运行您自己的基准测试，以确保性能对于您的用例来说是可以接受的。</p>
<p>我们正在对 Realtime 的 Postgres 更改进行许多改进。如果您不确定用例的性能，请使用支持表单与我们联系，我们将很乐意为您提供帮助。我们拥有一支工程师团队，可以为您的用例提供最佳解决方案建议。</p>

    </div>

    

    
                                            </div>
                                            <div><hr class="doc-hr">
<div id="doc-nav" class="d-print-none">

	<div class="row flex-xl-nowrap ">
	<div class="col-sm-6 pt-2 doc-next">
		<a href="../client-side-throttling/index.html">
			<div class="card h-100 my-1">
				<div class="card-body py-2">
                    <p class="card-title fs-5 fw-semibold lh-base mb-0"><i class="material-icons align-middle">navigate_before</i> 限制消息</p>
					
				</div>
			</div>
		</a>
        </div>
	<div class="col-sm-6 pt-2 doc-prev">
		<a class="ms-auto" href="../realtime-with-nextjs/index.html">
			<div class="card h-100 my-1 text-end">
				<div class="card-body py-2">
                    <p class="card-title fs-5 fw-semibold lh-base mb-0">将 Realtime 与 Next.js 结合使用 <i class="material-icons align-middle">navigate_next</i></p>
					
				</div>
			</div>
		</a>
        </div>
	</div>
</div></div>
                                        </div>
                                    </div>
                                </div>
                            </div>
<footer class="shadow py-3 d-print-none">
    <div class="container-fluid">
        <div class="row align-items-center">
            <div class="col">
                <div class="text-sm-start text-center mx-md-2">
                    <p class="mb-0">
                        
                        
                    </p>
                </div>
            </div>
        </div>
    </div>
</footer>
</main>
            </div>
        </div>

        
        
        <button onclick="topFunction()" id="back-to-top" aria-label="Back to Top Button" class="back-to-top fs-5"><svg width="24" height="24"><path d="M12,10.224l-6.3,6.3L4.32,15.152,12,7.472l7.68,7.68L18.3,16.528Z" style="fill:#fff"/></svg></button>
        
        

        
        
            <script>(()=>{var e=document.getElementById("mode");e!==null&&(window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",e=>{e.matches?(localStorage.setItem("theme","dark"),document.documentElement.setAttribute("data-dark-mode","")):(localStorage.setItem("theme","light"),document.documentElement.removeAttribute("data-dark-mode"))}),e.addEventListener("click",()=>{document.documentElement.toggleAttribute("data-dark-mode"),localStorage.setItem("theme",document.documentElement.hasAttribute("data-dark-mode")?"dark":"light")}),localStorage.getItem("theme")==="dark"?document.documentElement.setAttribute("data-dark-mode",""):document.documentElement.removeAttribute("data-dark-mode"))})()</script>
        




    
        
        
    
    






    

    <script src="../../../../../js/bootstrap.eac7ee3f6fa791c684e7a51fc2fd50b6f724271b9e39562e4fe8c3942412df3acbfc4045f043d03399dac70091207507.js"  defer></script>


    <script type="text/javascript" src="../../../../../js/bundle.min.ad2cedf5bf6173166579295b890c8a020e465c578d1a8833a9fad762c06e1e5133eb6f348c2644eb0bacfc38149db152.js"   crossorigin="anonymous" defer></script>
        

        
        
    </body>

<!-- Mirrored from docs.memfiredb.com/docs/app/development_guide/realtime/guides/postgres-changes/ by HTTrack Website Copier/3.x [XR&CO'2014], Fri, 27 Jun 2025 07:54:59 GMT -->
</html>